terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
CrashWatcher.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Diagnostics
;
3
using
System.Globalization
;
4
using
System.IO
;
5
using
System.Runtime.CompilerServices
;
6
using
System.Runtime.ExceptionServices
;
7
using
System.Threading
;
8
using
Cpp2IlInjected
;
9
10
namespace
Terraria.Utilities
11
{
12
// Token: 0x020004F6 RID: 1270
13
public
static
class
CrashWatcher
14
{
15
// Token: 0x1700060F RID: 1551
16
// (get) Token: 0x060030AF RID: 12463 RVA: 0x000021DB File Offset: 0x000003DB
17
// (set) Token: 0x060030B0 RID: 12464 RVA: 0x001F6C70 File Offset: 0x001F4E70
18
public
static
bool
LogAllExceptions
19
{
20
[
CompilerGenerated
]
21
get
22
{
23
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
24
}
25
[
CompilerGenerated
]
26
set
27
{
28
}
29
}
30
31
// Token: 0x17000610 RID: 1552
32
// (get) Token: 0x060030B1 RID: 12465 RVA: 0x000021DB File Offset: 0x000003DB
33
// (set) Token: 0x060030B2 RID: 12466 RVA: 0x001F6C80 File Offset: 0x001F4E80
34
public
static
bool
DumpOnException
35
{
36
[
CompilerGenerated
]
37
get
38
{
39
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
40
}
41
[
CompilerGenerated
]
42
set
43
{
44
}
45
}
46
47
// Token: 0x17000611 RID: 1553
48
// (get) Token: 0x060030B3 RID: 12467 RVA: 0x000021DB File Offset: 0x000003DB
49
// (set) Token: 0x060030B4 RID: 12468 RVA: 0x001F6C90 File Offset: 0x001F4E90
50
public
static
bool
DumpOnCrash
51
{
52
[
CompilerGenerated
]
53
get
54
{
55
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
56
}
57
[
CompilerGenerated
]
58
private
set
59
{
60
}
61
}
62
63
// Token: 0x17000612 RID: 1554
64
// (get) Token: 0x060030B5 RID: 12469 RVA: 0x000021DB File Offset: 0x000003DB
65
// (set) Token: 0x060030B6 RID: 12470 RVA: 0x001F6CA0 File Offset: 0x001F4EA0
66
public
static
CrashDump.Options
CrashDumpOptions
67
{
68
[
CompilerGenerated
]
69
get
70
{
71
throw
new
AnalysisFailedException
(
"CPP2IL failed to recover any usable IL for this method."
);
72
}
73
[
CompilerGenerated
]
74
private
set
75
{
76
}
77
}
78
79
// Token: 0x17000613 RID: 1555
80
// (get) Token: 0x060030B7 RID: 12471 RVA: 0x001F6CB0 File Offset: 0x001F4EB0
81
private
static
string
DumpPath
82
{
83
get
84
{
85
if
(!
true
)
86
{
87
}
88
return
Path
.
Combine
(
Main
.
SavePath
,
"Dumps"
);
89
}
90
}
91
92
// Token: 0x060030B8 RID: 12472 RVA: 0x001F6CD4 File Offset: 0x001F4ED4
93
public
static
void
Inititialize
()
94
{
95
if
(!
true
)
96
{
97
}
98
Console
.
WriteLine
(
"Error Logging Enabled."
);
99
AppDomain
currentDomain
=
AppDomain
.
CurrentDomain
;
100
AppDomain
currentDomain2
=
AppDomain
.
CurrentDomain
;
101
}
102
103
// Token: 0x060030B9 RID: 12473 RVA: 0x001F6D00 File Offset: 0x001F4F00
104
private
static
string
PrintException
(
Exception
ex)
105
{
106
string
text2;
107
string
text
=
"\nHResult: "
+
"\nHResult: "
+ text2;
108
string
text3
;
109
return
text
+
"\n+--> "
+
text3
;
110
}
111
112
// Token: 0x060030BA RID: 12474 RVA: 0x001F6D50 File Offset: 0x001F4F50
113
public
static
void
EnableCrashDumps
(
CrashDump
.
Options
options
)
114
{
115
}
116
117
// Token: 0x060030BB RID: 12475 RVA: 0x001F6D60 File Offset: 0x001F4F60
118
public
static
void
DisableCrashDumps
()
119
{
120
}
121
122
// Token: 0x060030BC RID: 12476 RVA: 0x001F6D70 File Offset: 0x001F4F70
123
[Conditional(
"UNITY_EDITOR"
)]
124
[Conditional(
"ENABLE_DEBUG"
)]
125
private
static
void
HookDebugExceptionDialog
()
126
{
127
}
128
129
// Token: 0x04003AC1 RID: 15041
130
[
CompilerGenerated
]
131
private
static
bool <LogAllExceptions>
k__BackingField
;
132
133
// Token: 0x04003AC2 RID: 15042
134
[
CompilerGenerated
]
135
private
static
bool <DumpOnException>
k__BackingField
;
136
137
// Token: 0x04003AC3 RID: 15043
138
[
CompilerGenerated
]
139
private
static
bool <DumpOnCrash>
k__BackingField
;
140
141
// Token: 0x04003AC4 RID: 15044
142
[
CompilerGenerated
]
143
private
static
CrashDump.Options
<
CrashDumpOptions
>
k__BackingField
;
144
145
// Token: 0x020004F7 RID: 1271
146
[
CompilerGenerated
]
147
[Serializable]
148
private
sealed
class <>
c
149
{
150
// Token: 0x060030BD RID: 12477 RVA: 0x001F6D80 File Offset: 0x001F4F80
151
// Note: this type is marked as 'beforefieldinit'.
152
static <>
c()
153
{
154
}
155
156
// Token: 0x060030BE RID: 12478 RVA: 0x001F6D90 File Offset: 0x001F4F90
157
public <>
c()
158
{
159
}
160
161
// Token: 0x060030BF RID: 12479 RVA: 0x001F6DA4 File Offset: 0x001F4FA4
162
internal
void <Inititialize>
b__18_0(
object
sender
,
FirstChanceExceptionEventArgs
exceptionArgs
)
163
{
164
string
text
=
CrashWatcher
.
PrintException
(
exceptionArgs
.<
Exception
>
k__BackingField
);
165
DateTime
now
=
DateTime
.
Now
;
166
int
managedThreadId =
Thread
.
CurrentThread
.
ManagedThreadId
;
167
string
name
=
Thread
.
CurrentThread
.
Name
;
168
if
(
name
==
null
||
name
!=
null
)
169
{
170
CultureInfo
currentCulture
=
Thread
.
CurrentThread
.
CurrentCulture
;
171
if
((
currentCulture
==
null
||
currentCulture
!=
null
) && (
text
==
null
||
text
!=
null
))
172
{
173
string
text2;
174
Console
.
Write
(
"================\r\n"
+ text2 +
"================\r\n\r\n"
);
175
string
dumpPath
=
CrashWatcher
.
DumpPath
;
176
return
;
177
}
178
}
179
throw
new
ArrayTypeMismatchException
();
180
}
181
182
// Token: 0x060030C0 RID: 12480 RVA: 0x001F6E30 File Offset: 0x001F5030
183
internal
void <Inititialize>
b__18_1
(
object
sender
,
UnhandledExceptionEventArgs
exceptionArgs
)
184
{
185
if
(
exceptionArgs
._exception !=
null
)
186
{
187
}
188
DateTime
now
=
DateTime
.
Now
;
189
int
managedThreadId =
Thread
.
CurrentThread
.
ManagedThreadId
;
190
string
name
=
Thread
.
CurrentThread
.
Name
;
191
if
(
name
==
null
||
name
!=
null
)
192
{
193
CultureInfo
currentCulture
=
Thread
.
CurrentThread
.
CurrentCulture
;
194
string
text
;
195
if
((
currentCulture
==
null
||
currentCulture
!=
null
) && (
text
==
null
||
text
!=
null
))
196
{
197
string
text2;
198
Console
.
Write
(
"================\r\n"
+ text2 +
"================\r\n"
);
199
string
dumpPath
=
CrashWatcher
.
DumpPath
;
200
return
;
201
}
202
}
203
throw
new
ArrayTypeMismatchException
();
204
}
205
206
// Token: 0x04003AC5 RID: 15045
207
public
static
readonly
CrashWatcher
.<>
c <>
9;
208
209
// Token: 0x04003AC6 RID: 15046
210
public
static
EventHandler<FirstChanceExceptionEventArgs>
<>9
__18_0
;
211
212
// Token: 0x04003AC7 RID: 15047
213
public
static
UnhandledExceptionEventHandler <>
9
__18_1
;
214
}
215
}
216
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
System.AppDomain.CurrentDomain
static AppDomain CurrentDomain
Definition
AppDomain.cs:49
System.AppDomain
Definition
AppDomain.cs:22
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Console.WriteLine
static void WriteLine(object value)
Definition
Console.cs:134
System.Console.Write
static void Write(string value)
Definition
Console.cs:118
System.Console
Definition
Console.cs:9
System.EventHandler
Definition
EventHandler.2.cs:7
System.Exception
Definition
Exception.cs:15
System.Globalization.CultureInfo
Definition
CultureInfo.cs:15
System.IO.Path.Combine
static string Combine(string path1, string path2)
Definition
Path.cs:41
System.IO.Path
Definition
Path.cs:13
System.Runtime.ExceptionServices.FirstChanceExceptionEventArgs
Definition
FirstChanceExceptionEventArgs.cs:8
System.Threading.Thread.ManagedThreadId
int ManagedThreadId
Definition
Thread.cs:628
System.Threading.Thread.CurrentThread
static Thread CurrentThread
Definition
Thread.cs:381
System.Threading.Thread.CurrentCulture
CultureInfo CurrentCulture
Definition
Thread.cs:283
System.Threading.Thread.Name
string Name
Definition
Thread.cs:488
System.Threading.Thread
Definition
Thread.cs:15
System.UnhandledExceptionEventArgs
Definition
UnhandledExceptionEventArgs.cs:8
Terraria.Main.SavePath
static string SavePath
Definition
Main.cs:4045
Terraria.Main
Definition
Main.cs:67
Terraria.Utilities.CrashDump.Options
Options
Definition
CrashDump.cs:52
Terraria.Utilities.CrashDump
Definition
CrashDump.cs:10
Terraria.Utilities.CrashWatcher.LogAllExceptions
static bool LogAllExceptions
Definition
CrashWatcher.cs:19
Terraria.Utilities.CrashWatcher.DumpOnException
static bool DumpOnException
Definition
CrashWatcher.cs:35
Terraria.Utilities.CrashWatcher.Inititialize
static void Inititialize()
Definition
CrashWatcher.cs:93
Terraria.Utilities.CrashWatcher.CrashDumpOptions
static CrashDump.Options CrashDumpOptions
Definition
CrashWatcher.cs:67
Terraria.Utilities.CrashWatcher.k__BackingField
static bool< DumpOnException > k__BackingField
Definition
CrashWatcher.cs:135
Terraria.Utilities.CrashWatcher.DumpPath
static string DumpPath
Definition
CrashWatcher.cs:82
Terraria.Utilities.CrashWatcher.DumpOnCrash
static bool DumpOnCrash
Definition
CrashWatcher.cs:51
Terraria.Utilities.CrashWatcher.PrintException
static string PrintException(Exception ex)
Definition
CrashWatcher.cs:104
Terraria.Utilities.CrashWatcher.HookDebugExceptionDialog
static void HookDebugExceptionDialog()
Definition
CrashWatcher.cs:125
Terraria.Utilities.CrashWatcher.k__BackingField
static CrashDump.Options< CrashDumpOptions > k__BackingField
Definition
CrashWatcher.cs:143
Terraria.Utilities.CrashWatcher.k__BackingField
static bool< DumpOnCrash > k__BackingField
Definition
CrashWatcher.cs:139
Terraria.Utilities.CrashWatcher.DisableCrashDumps
static void DisableCrashDumps()
Definition
CrashWatcher.cs:118
Terraria.Utilities.CrashWatcher.k__BackingField
static bool< LogAllExceptions > k__BackingField
Definition
CrashWatcher.cs:131
Terraria.Utilities.CrashWatcher.EnableCrashDumps
static void EnableCrashDumps(CrashDump.Options options)
Definition
CrashWatcher.cs:113
Terraria.Utilities.CrashWatcher
Definition
CrashWatcher.cs:14
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
System.Diagnostics
Definition
ConditionalAttribute.cs:5
System.Globalization
Definition
Bootstring.cs:5
System.IO
Definition
__Error.cs:4
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System.Runtime.ExceptionServices
Definition
ExceptionDispatchInfo.cs:5
System.Threading
Definition
_ThreadPoolWaitCallback.cs:4
System.ExceptionArgument.text
@ text
System.ExceptionArgument.options
@ options
System.ExceptionArgument.name
@ name
System
Definition
__ComObject.cs:4
Terraria.Utilities
Definition
Bits64.cs:5
System.DateTime.Now
static DateTime Now
Definition
DateTime.cs:530
System.DateTime
Definition
DateTime.cs:13
source
Terraria
Utilities
CrashWatcher.cs
Generated by
1.10.0