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.
1using System;
4using System.IO;
9
10namespace 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 {
21 get
22 {
23 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
24 }
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 {
37 get
38 {
39 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
40 }
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 {
53 get
54 {
55 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
56 }
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
67 {
69 get
70 {
71 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
72 }
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.");
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
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
131 private static bool <LogAllExceptions>k__BackingField;
132
133 // Token: 0x04003AC2 RID: 15042
135 private static bool <DumpOnException>k__BackingField;
136
137 // Token: 0x04003AC3 RID: 15043
139 private static bool <DumpOnCrash>k__BackingField;
140
141 // Token: 0x04003AC4 RID: 15044
144
145 // Token: 0x020004F7 RID: 1271
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
163 {
166 int managedThreadId = Thread.CurrentThread.ManagedThreadId;
167 string name = Thread.CurrentThread.Name;
168 if (name == null || name != null)
169 {
171 if ((currentCulture == null || currentCulture != null) && (text == null || text != null))
172 {
173 string text2;
174 Console.Write("================\r\n" + text2 + "================\r\n\r\n");
176 return;
177 }
178 }
179 throw new ArrayTypeMismatchException();
180 }
181
182 // Token: 0x060030C0 RID: 12480 RVA: 0x001F6E30 File Offset: 0x001F5030
184 {
185 if (exceptionArgs._exception != null)
186 {
187 }
189 int managedThreadId = Thread.CurrentThread.ManagedThreadId;
190 string name = Thread.CurrentThread.Name;
191 if (name == null || name != null)
192 {
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");
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
211
212 // Token: 0x04003AC7 RID: 15047
214 }
215 }
216}
class f__AnonymousType0<< Count > j__TPar
static AppDomain CurrentDomain
Definition AppDomain.cs:49
static void WriteLine(object value)
Definition Console.cs:134
static void Write(string value)
Definition Console.cs:118
static string Combine(string path1, string path2)
Definition Path.cs:41
static Thread CurrentThread
Definition Thread.cs:381
CultureInfo CurrentCulture
Definition Thread.cs:283
static string SavePath
Definition Main.cs:4045
static CrashDump.Options CrashDumpOptions
static bool< DumpOnException > k__BackingField
static string PrintException(Exception ex)
static CrashDump.Options< CrashDumpOptions > k__BackingField
static bool< DumpOnCrash > k__BackingField
static bool< LogAllExceptions > k__BackingField
static void EnableCrashDumps(CrashDump.Options options)
static DateTime Now
Definition DateTime.cs:530