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
GUILowMemoryPopup.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4// Token: 0x02000263 RID: 611
5public class GUILowMemoryPopup
6{
7 // Token: 0x06000DB2 RID: 3506 RVA: 0x00041AC0 File Offset: 0x0003FCC0
14
15 // Token: 0x17000176 RID: 374
16 // (get) Token: 0x06000DB3 RID: 3507 RVA: 0x00041AFC File Offset: 0x0003FCFC
17 public static long DeviceMemory
18 {
19 get
20 {
21 /*
22An exception occurred when decompiling this method (06000DB3)
23
24ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int64 GUILowMemoryPopup::get_DeviceMemory()
25
26 ---> System.Exception: Basic block has to end with unconditional control flow.
27{
28 Block_0:
29 stloc:int32(var_1_07, callgetter:int32(SystemInfo::get_systemMemorySize))
30}
31
32 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
33 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
34 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
35 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
36 --- End of inner exception stack trace ---
37 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
38 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
39*/;
40 }
41 }
42
43 // Token: 0x06000DB4 RID: 3508 RVA: 0x00041B10 File Offset: 0x0003FD10
44 public void Draw()
45 {
46 if (!true)
47 {
48 }
50 if (currentWarning != GUILowMemoryPopup.MemoryAction.Host)
51 {
53 {
54 }
55 return;
56 }
58 {
59 }
60 }
61
62 // Token: 0x06000DB5 RID: 3509 RVA: 0x00041B84 File Offset: 0x0003FD84
64 {
65 }
66
67 // Token: 0x0400194C RID: 6476
68 public bool WarningDisplayed;
69
70 // Token: 0x0400194D RID: 6477
71 public bool DisableWarnings;
72
73 // Token: 0x0400194E RID: 6478
75
76 // Token: 0x0400194F RID: 6479
78
79 // Token: 0x04001950 RID: 6480
80 private float scale0;
81
82 // Token: 0x04001951 RID: 6481
83 private float scale1;
84
85 // Token: 0x04001952 RID: 6482
86 private float scale2;
87
88 // Token: 0x02000264 RID: 612
89 public enum MemoryAction
90 {
91 // Token: 0x04001954 RID: 6484
92 Host,
93 // Token: 0x04001955 RID: 6485
95 // Token: 0x04001956 RID: 6486
97 }
98}
class f__AnonymousType0<< Count > j__TPar
void CheckMemoryAction(GUILowMemoryPopup.MemoryAction action, Action continueAction)
GUILowMemoryPopup.MemoryAction CurrentWarning
static int systemMemorySize
Definition SystemInfo.cs:39