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
AssetInitializer.cs
Go to the documentation of this file.
1using System;
13using Terraria.IO;
14
16{
17 // Token: 0x02000582 RID: 1410
18 public static class AssetInitializer
19 {
20 // Token: 0x06003467 RID: 13415 RVA: 0x00204DF4 File Offset: 0x00202FF4
21 public static void CreateAssetServices(GameServiceContainer services)
22 {
23 if (!true)
24 {
25 }
26 }
27
28 // Token: 0x06003468 RID: 13416 RVA: 0x00204E04 File Offset: 0x00203004
29 public static void LoadSplashAssets(bool asyncLoadForSounds)
30 {
31 int num;
32 string text = num.ToString();
33 Asset asset = AssetInitializer.LoadAsset("Images\\SplashScreens\\Splash_" + text + "_0", AssetRequestMode.ImmediateLoad);
34 string text2;
35 Asset asset2 = AssetInitializer.LoadAsset("Images\\SplashScreens\\Splash_" + text2 + "_1", AssetRequestMode.ImmediateLoad);
36 string text3;
37 Asset asset3 = AssetInitializer.LoadAsset("Images\\SplashScreens\\Splash_" + text3 + "_2", AssetRequestMode.ImmediateLoad);
38 string text4;
39 Asset asset4 = AssetInitializer.LoadAsset("Images\\Item_" + text4, AssetRequestMode.ImmediateLoad);
40 if (asset4 == null || asset4 != null)
41 {
42 Asset asset5 = AssetInitializer.LoadAsset("Images\\UI\\Sunflower_Loading", AssetRequestMode.ImmediateLoad);
43 return;
44 }
46 }
47
48 // Token: 0x06003469 RID: 13417 RVA: 0x000021DB File Offset: 0x000003DB
50 {
51 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
52 }
53
54 // Token: 0x0600346A RID: 13418 RVA: 0x00204E90 File Offset: 0x00203090
56 {
57 int num = 1;
58 if (num == 0)
59 {
60 }
61 if (num == 0)
62 {
63 }
64 }
65
66 // Token: 0x0600346B RID: 13419 RVA: 0x00204F14 File Offset: 0x00203114
67 public static void Load(bool asyncLoad)
68 {
69 }
70
71 // Token: 0x0600346C RID: 13420 RVA: 0x000021DB File Offset: 0x000003DB
73 {
74 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
75 }
76
77 // Token: 0x0600346D RID: 13421 RVA: 0x00204F24 File Offset: 0x00203124
78 private static void LoadFonts(AssetRequestMode mode)
79 {
80 Asset asset = AssetInitializer.LoadAsset("Fonts/Item_Stack", mode);
81 Asset asset2 = AssetInitializer.LoadAsset("Fonts/Mouse_Text", mode);
82 Asset asset3 = AssetInitializer.LoadAsset("Fonts/Death_Text", mode);
83 Asset asset4 = AssetInitializer.LoadAsset("Fonts/Combat_Text", mode);
84 if (asset4 == null || asset4 != null)
85 {
86 Asset asset5 = AssetInitializer.LoadAsset("Fonts/Combat_Crit", mode);
87 if (asset5 == null || asset5 != null)
88 {
89 return;
90 }
91 }
93 }
94
95 // Token: 0x0600346E RID: 13422 RVA: 0x00204F84 File Offset: 0x00203184
96 private static void LoadSounds(AssetRequestMode mode)
97 {
98 if (!true)
99 {
100 }
103 }
104
105 // Token: 0x0600346F RID: 13423 RVA: 0x00204F9C File Offset: 0x0020319C
107 {
108 }
109
110 // Token: 0x06003470 RID: 13424 RVA: 0x00204FAC File Offset: 0x002031AC
112 {
113 if (!true)
114 {
115 }
116 }
117
118 // Token: 0x06003471 RID: 13425 RVA: 0x000021DB File Offset: 0x000003DB
120 {
121 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
122 }
123
124 // Token: 0x06003472 RID: 13426 RVA: 0x00204FC0 File Offset: 0x002031C0
125 private static void LoadTextures(AssetRequestMode mode)
126 {
127 int num = 1;
128 long num2 = 0L;
129 if (num == 0)
130 {
131 }
132 if (num2 == 0L)
133 {
134 return;
135 }
136 Asset asset;
137 if (asset != null)
138 {
139 return;
140 }
141 throw new ArrayTypeMismatchException();
142 }
143
144 // Token: 0x06003473 RID: 13427 RVA: 0x00206DCC File Offset: 0x00204FCC
146 {
147 if ("Valkyrie" == null)
148 {
149 }
150 Preferences configuration = Main.Configuration;
151 if (Main.ActiveMinimapFrame == null)
152 {
155 }
156 }
157
158 // Token: 0x06003474 RID: 13428 RVA: 0x00206DF8 File Offset: 0x00204FF8
160 {
161 }
162
163 // Token: 0x06003475 RID: 13429 RVA: 0x00206E08 File Offset: 0x00205008
164 private static void LoadMinimap(string name, Vector2 frameOffset, Vector2 resetPosition, Vector2 zoomInPosition, Vector2 zoomOutPosition, AssetRequestMode mode)
165 {
166 string text = "Images\\UI\\Minimap\\" + name + "\\MinimapFrame";
167 string text2 = "Images\\UI\\Minimap\\" + name + "\\MinimapButton_Reset";
168 string text3 = "Images\\UI\\Minimap\\" + name + "\\MinimapButton_ZoomOut";
169 string text4 = "Images\\UI\\Minimap\\" + name + "\\MinimapButton_ZoomIn";
170 }
171
172 // Token: 0x06003476 RID: 13430 RVA: 0x00206E5C File Offset: 0x0020505C
174 {
175 if (!true)
176 {
177 }
178 Preferences configuration = Main.Configuration;
179 if (Main.ActivePlayerResourcesSet != null)
180 {
181 return;
182 }
185 }
186
187 // Token: 0x06003477 RID: 13431 RVA: 0x00206E84 File Offset: 0x00205084
191
192 // Token: 0x06003478 RID: 13432 RVA: 0x00206E94 File Offset: 0x00205094
194 {
195 /*
196An exception occurred when decompiling this method (06003478)
197
198ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Content.Asset`1<T> Terraria.Initializers.AssetInitializer::LoadAsset<T>(System.String,ReLogic.Content.AssetRequestMode)
199
200 ---> System.Exception: Basic block has to end with unconditional control flow.
201{
202 IL_0000:
203 brtrue(IL_0000, ldc.i4:bool(1))
204}
205
206 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
207 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
208 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
209 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
210 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
211 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
212 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
213 --- End of inner exception stack trace ---
214 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
215 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
216*/;
217 }
218
219 // Token: 0x0400414B RID: 16715
220 public static bool initialAssetsLoaded;
221
222 // Token: 0x02000583 RID: 1411
224 private sealed class <LoadAssetsWhileInInitialBlackScreen_InSteps>d__3 : IEnumerator<object>, IEnumerator, IDisposable
225 {
226 // Token: 0x06003479 RID: 13433 RVA: 0x00206EA4 File Offset: 0x002050A4
229 {
230 this.<>1__state = <>1__state;
231 }
232
233 // Token: 0x0600347A RID: 13434 RVA: 0x00206EC0 File Offset: 0x002050C0
235 void IDisposable.Dispose()
236 {
237 }
238
239 // Token: 0x0600347B RID: 13435 RVA: 0x00206ED0 File Offset: 0x002050D0
240 private bool MoveNext()
241 {
242 /*
243An exception occurred when decompiling this method (0600347B)
244
245ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Initializers.AssetInitializer/<LoadAssetsWhileInInitialBlackScreen_InSteps>d__3::MoveNext()
246
247 ---> System.Exception: Basic block has to end with unconditional control flow.
248{
249 IL_0150:
250 stloc:int64(var_38_157, ldfld:int64(int64::m_value, ldloc:int64[exp:int64&](var_36)))
251}
252
253 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
254 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
255 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
256 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
257 --- End of inner exception stack trace ---
258 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
259 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
260*/;
261 }
262
263 // Token: 0x17000680 RID: 1664
264 // (get) Token: 0x0600347C RID: 13436 RVA: 0x00207038 File Offset: 0x00205238
266 {
268 get
269 {
270 return this.<>2__current;
271 }
272 }
273
274 // Token: 0x0600347D RID: 13437 RVA: 0x000021DB File Offset: 0x000003DB
276 void IEnumerator.Reset()
277 {
278 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
279 }
280
281 // Token: 0x17000681 RID: 1665
282 // (get) Token: 0x0600347E RID: 13438 RVA: 0x0020704C File Offset: 0x0020524C
284 {
286 get
287 {
288 return this.<>2__current;
289 }
290 }
291
292 // Token: 0x0400414C RID: 16716
293 private int <>1__state;
294
295 // Token: 0x0400414D RID: 16717
296 private object <>2__current;
297
298 // Token: 0x0400414E RID: 16718
300
301 // Token: 0x0400414F RID: 16719
303
304 // Token: 0x04004150 RID: 16720
306
307 // Token: 0x04004151 RID: 16721
309 }
310
311 // Token: 0x02000584 RID: 1412
313 private sealed class <LoadFonts_InSteps>d__6 : IEnumerator<object>, IEnumerator, IDisposable
314 {
315 // Token: 0x0600347F RID: 13439 RVA: 0x00207060 File Offset: 0x00205260
318 {
319 this.<>1__state = <>1__state;
320 }
321
322 // Token: 0x06003480 RID: 13440 RVA: 0x0020707C File Offset: 0x0020527C
324 void IDisposable.Dispose()
325 {
326 }
327
328 // Token: 0x06003481 RID: 13441 RVA: 0x0020708C File Offset: 0x0020528C
329 private bool MoveNext()
330 {
331 int num = this.<>1__state;
333 Asset asset = AssetInitializer.LoadAsset("Fonts/Item_Stack", assetRequestMode);
334 int num2 = 1;
335 this.<>1__state = num2;
336 if (num2 == 0)
337 {
338 }
340 Asset asset2 = AssetInitializer.LoadAsset("Fonts/Combat_Text", assetRequestMode2);
341 if (asset2 == null || asset2 != null)
342 {
344 Asset asset3 = AssetInitializer.LoadAsset("Fonts/Mouse_Text", assetRequestMode3);
346 Asset asset4 = AssetInitializer.LoadAsset("Fonts/Death_Text", assetRequestMode4);
347 int num3 = 3;
348 this.<>1__state = num3;
349 if (num3 == 0)
350 {
351 }
353 Asset asset5 = AssetInitializer.LoadAsset("Fonts/Combat_Crit", assetRequestMode5);
354 if (asset5 == null || asset5 != null)
355 {
356 int num4 = 5;
357 this.<>1__state = num4;
358 }
359 }
360 throw new ArrayTypeMismatchException();
361 }
362
363 // Token: 0x17000682 RID: 1666
364 // (get) Token: 0x06003482 RID: 13442 RVA: 0x000021DB File Offset: 0x000003DB
366 {
368 get
369 {
370 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
371 }
372 }
373
374 // Token: 0x06003483 RID: 13443 RVA: 0x000021DB File Offset: 0x000003DB
376 void IEnumerator.Reset()
377 {
378 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
379 }
380
381 // Token: 0x17000683 RID: 1667
382 // (get) Token: 0x06003484 RID: 13444 RVA: 0x00207150 File Offset: 0x00205350
384 {
386 get
387 {
388 return this.<>2__current;
389 }
390 }
391
392 // Token: 0x04004152 RID: 16722
393 private int <>1__state;
394
395 // Token: 0x04004153 RID: 16723
396 private object <>2__current;
397
398 // Token: 0x04004154 RID: 16724
399 public AssetRequestMode mode;
400 }
401
402 // Token: 0x02000585 RID: 1413
404 private sealed class <LoadTextures_InSteps>d__11 : IEnumerator<object>, IEnumerator, IDisposable
405 {
406 // Token: 0x06003485 RID: 13445 RVA: 0x00207164 File Offset: 0x00205364
409 {
410 this.<>1__state = <>1__state;
411 }
412
413 // Token: 0x06003486 RID: 13446 RVA: 0x00207180 File Offset: 0x00205380
415 void IDisposable.Dispose()
416 {
417 }
418
419 // Token: 0x06003487 RID: 13447 RVA: 0x00207190 File Offset: 0x00205390
420 private bool MoveNext()
421 {
422 int num = this.<>1__state;
423 return "Images\\WallOfFlesh" != null;
424 }
425
426 // Token: 0x17000684 RID: 1668
427 // (get) Token: 0x06003488 RID: 13448 RVA: 0x002099A4 File Offset: 0x00207BA4
429 {
431 get
432 {
433 return this.<>2__current;
434 }
435 }
436
437 // Token: 0x06003489 RID: 13449 RVA: 0x000021DB File Offset: 0x000003DB
439 void IEnumerator.Reset()
440 {
441 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
442 }
443
444 // Token: 0x17000685 RID: 1669
445 // (get) Token: 0x0600348A RID: 13450 RVA: 0x002099B8 File Offset: 0x00207BB8
447 {
449 get
450 {
451 return this.<>2__current;
452 }
453 }
454
455 // Token: 0x04004155 RID: 16725
456 private int <>1__state;
457
458 // Token: 0x04004156 RID: 16726
459 private object <>2__current;
460
461 // Token: 0x04004157 RID: 16727
462 public AssetRequestMode mode;
463 }
464
465 // Token: 0x02000586 RID: 1414
467 private sealed class <>c__DisplayClass13_0
468 {
469 // Token: 0x0600348B RID: 13451 RVA: 0x002099CC File Offset: 0x00207BCC
471 {
472 }
473
474 // Token: 0x0600348C RID: 13452 RVA: 0x002099E0 File Offset: 0x00207BE0
476 {
477 string text = this.frameName;
478 bool flag;
479 return flag;
480 }
481
482 // Token: 0x04004158 RID: 16728
483 public string frameName;
484 }
485
486 // Token: 0x02000587 RID: 1415
489 private sealed class <>c
490 {
491 // Token: 0x0600348D RID: 13453 RVA: 0x002099F8 File Offset: 0x00207BF8
492 // Note: this type is marked as 'beforefieldinit'.
493 static <>c()
494 {
495 }
496
497 // Token: 0x0600348E RID: 13454 RVA: 0x00209A08 File Offset: 0x00207C08
498 public <>c()
499 {
500 }
501
502 // Token: 0x0600348F RID: 13455 RVA: 0x00209A1C File Offset: 0x00207C1C
504 {
505 /*
506An exception occurred when decompiling this method (0600348F)
507
508ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Initializers.AssetInitializer/<>c::<Configuration_OnSave_MinimapFrame>b__14_0(System.Collections.Generic.KeyValuePair`2<System.String,Terraria.GameContent.UI.Minimap.MinimapFrame>)
509
510 ---> System.Exception: Basic block has to end with unconditional control flow.
511{
512 IL_0003:
513 stloc:MinimapFrame(var_1_0A, callgetter:MinimapFrame(Main::get_ActiveMinimapFrame))
514}
515
516 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
517 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
518 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
519 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
520 --- End of inner exception stack trace ---
521 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
522 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
523*/;
524 }
525
526 // Token: 0x06003490 RID: 13456 RVA: 0x00209A34 File Offset: 0x00207C34
528 {
529 /*
530An exception occurred when decompiling this method (06003490)
531
532ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Initializers.AssetInitializer/<>c::<Configuration_OnSave_PlayerResourcesSet>b__17_0(System.Collections.Generic.KeyValuePair`2<System.String,Terraria.GameContent.UI.ResourceSets.IPlayerResourcesDisplaySet>)
533
534 ---> System.Exception: Basic block has to end with unconditional control flow.
535{
536 IL_0003:
537 stloc:IPlayerResourcesDisplaySet(var_1_0A, callgetter:IPlayerResourcesDisplaySet(Main::get_ActivePlayerResourcesSet))
538}
539
540 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
541 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
542 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
543 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
544 --- End of inner exception stack trace ---
545 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
546 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
547*/;
548 }
549
550 // Token: 0x04004159 RID: 16729
551 public static readonly AssetInitializer.<>c <>9;
552
553 // Token: 0x0400415A RID: 16730
554 public static Func<KeyValuePair<string, MinimapFrame>, bool> <>9__14_0;
555
556 // Token: 0x0400415B RID: 16731
558 }
559
560 // Token: 0x02000588 RID: 1416
562 private sealed class <>c__DisplayClass16_0
563 {
564 // Token: 0x06003491 RID: 13457 RVA: 0x00209A4C File Offset: 0x00207C4C
566 {
567 }
568
569 // Token: 0x06003492 RID: 13458 RVA: 0x00209A60 File Offset: 0x00207C60
571 {
572 string text = this.frameName;
573 bool flag;
574 return flag;
575 }
576
577 // Token: 0x0400415C RID: 16732
578 public string frameName;
579 }
580 }
581}
class f__AnonymousType0<< Count > j__TPar
static void Load(IServiceProvider services)
static void CreateAssetServices(GameServiceContainer services)
static void LoadTextures(AssetRequestMode mode)
static IEnumerator LoadAssetsWhileInInitialBlackScreen_InSteps()
static void LoadSounds(AssetRequestMode mode)
static Asset< T > LoadAsset< T >(string assetName, AssetRequestMode mode)
static void Configuration_OnSave_MinimapFrame(Preferences obj)
class< LoadTextures_InSteps > d__11
static void LoadPlayerResourceSets(AssetRequestMode mode)
class< LoadAssetsWhileInInitialBlackScreen_InSteps > IEnumerator
static void Configuration_OnSave_PlayerResourcesSet(Preferences obj)
static void RegisterRenderTargetAsset(INeedRenderTargetContent content)
static void LoadRenderTargetAssets(AssetRequestMode mode)
static void LoadSplashAssets(bool asyncLoadForSounds)
static void LoadFonts(AssetRequestMode mode)
class< LoadAssetsWhileInInitialBlackScreen_InSteps > d__3
static void LoadMinimap(string name, Vector2 frameOffset, Vector2 resetPosition, Vector2 zoomInPosition, Vector2 zoomOutPosition, AssetRequestMode mode)
static IEnumerator LoadFonts_InSteps(AssetRequestMode mode)
static void LoadMinimapFrames(AssetRequestMode mode)
static IEnumerator LoadTextures_InSteps(AssetRequestMode mode)
static MinimapFrame ActiveMinimapFrame
Definition Main.cs:86
static IPlayerResourcesDisplaySet ActivePlayerResourcesSet
Definition Main.cs:100
static Preferences Configuration
Definition Main.cs:2824