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
VersionInfo.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5namespace InControl
6{
7 // Token: 0x02000071 RID: 113
9 public struct VersionInfo : IComparable<VersionInfo>
10 {
11 // Token: 0x06000544 RID: 1348 RVA: 0x00010378 File Offset: 0x0000E578
12 public VersionInfo(int major, int minor, int patch, int build)
13 {
17 }
18
19 // Token: 0x06000545 RID: 1349 RVA: 0x000025E1 File Offset: 0x000007E1
21 {
22 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
23 }
24
25 // Token: 0x06000546 RID: 1350 RVA: 0x0001039C File Offset: 0x0000E59C
26 public static VersionInfo UnityVersion()
27 {
28 /*
29An exception occurred when decompiling this method (06000546)
30
31ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.VersionInfo InControl.VersionInfo::UnityVersion()
32
33 ---> System.Exception: Basic block has to end with unconditional control flow.
34{
35 Block_0:
36 stloc:Match(var_1_11, call:Match(Regex::Match, callgetter:string(Application::get_unityVersion), ldstr:string("^(\\d+)\\.(\\d+)\\.(\\d+)f(\\d+)")))
37 stloc:int32(var_3_1D, call:int32(Convert::ToInt32, callgetter:string(Capture::get_Value, ldloc:Group[exp:Capture](var_2))))
38 stloc:int32(var_5_2A, call:int32(Convert::ToInt32, callgetter:string(Capture::get_Value, ldloc:Group[exp:Capture](var_4))))
39 stloc:int32(var_7_38, call:int32(Convert::ToInt32, callgetter:string(Capture::get_Value, ldloc:Group[exp:Capture](var_6))))
40 stloc:int32(var_9_46, call:int32(Convert::ToInt32, callgetter:string(Capture::get_Value, ldloc:Group[exp:Capture](var_8))))
41}
42
43 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
44 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
45 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
46 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
47 --- End of inner exception stack trace ---
48 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
49 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
50*/;
51 }
52
53 // Token: 0x17000169 RID: 361
54 // (get) Token: 0x06000547 RID: 1351 RVA: 0x000103F0 File Offset: 0x0000E5F0
55 public static VersionInfo Min
56 {
57 get
58 {
59 }
60 }
61
62 // Token: 0x1700016A RID: 362
63 // (get) Token: 0x06000548 RID: 1352 RVA: 0x00010404 File Offset: 0x0000E604
64 public static VersionInfo Max
65 {
66 get
67 {
68 }
69 }
70
71 // Token: 0x1700016B RID: 363
72 // (get) Token: 0x06000549 RID: 1353 RVA: 0x00010418 File Offset: 0x0000E618
74 {
75 get
76 {
77 /*
78An exception occurred when decompiling this method (06000549)
79
80ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.VersionInfo InControl.VersionInfo::get_Next()
81
82 ---> System.Exception: Basic block has to end with unconditional control flow.
83{
84 Block_0:
85 stloc:int32(var_0_06, ldfld:int32(VersionInfo::patch, ldloc:valuetype InControl.VersionInfo&(this)))
86}
87
88 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
89 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
90 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
91 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
92 --- End of inner exception stack trace ---
93 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
94 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
95*/;
96 }
97 }
98
99 // Token: 0x1700016C RID: 364
100 // (get) Token: 0x0600054A RID: 1354 RVA: 0x0001042C File Offset: 0x0000E62C
101 public int Build
102 {
103 get
104 {
105 return this.build;
106 }
107 }
108
109 // Token: 0x0600054B RID: 1355 RVA: 0x00010440 File Offset: 0x0000E640
111 {
112 int num = this.minor;
113 int num2 = this.patch;
114 return 1;
115 }
116
117 // Token: 0x0600054C RID: 1356 RVA: 0x000025E1 File Offset: 0x000007E1
118 public static bool operator ==(VersionInfo a, VersionInfo b)
119 {
120 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
121 }
122
123 // Token: 0x0600054D RID: 1357 RVA: 0x000025E1 File Offset: 0x000007E1
124 public static bool operator !=(VersionInfo a, VersionInfo b)
125 {
126 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
127 }
128
129 // Token: 0x0600054E RID: 1358 RVA: 0x000025E1 File Offset: 0x000007E1
130 public static bool operator <=(VersionInfo a, VersionInfo b)
131 {
132 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
133 }
134
135 // Token: 0x0600054F RID: 1359 RVA: 0x000025E1 File Offset: 0x000007E1
136 public static bool operator >=(VersionInfo a, VersionInfo b)
137 {
138 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
139 }
140
141 // Token: 0x06000550 RID: 1360 RVA: 0x000025E1 File Offset: 0x000007E1
142 public static bool operator <(VersionInfo a, VersionInfo b)
143 {
144 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
145 }
146
147 // Token: 0x06000551 RID: 1361 RVA: 0x000025E1 File Offset: 0x000007E1
148 public static bool operator >(VersionInfo a, VersionInfo b)
149 {
150 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
151 }
152
153 // Token: 0x06000552 RID: 1362 RVA: 0x00010460 File Offset: 0x0000E660
154 public override bool Equals(object other)
155 {
156 /*
157An exception occurred when decompiling this method (06000552)
158
159ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.VersionInfo::Equals(System.Object)
160
161 ---> System.Exception: Basic block has to end with unconditional control flow.
162{
163 IL_0003:
164 stloc:int32(var_1_0B, ldfld:int32(VersionInfo::major, ldloc:valuetype InControl.VersionInfo&(this)))
165 stloc:int32(var_2_12, ldfld:int32(VersionInfo::patch, ldloc:valuetype InControl.VersionInfo&(this)))
166}
167
168 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
169 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
170 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
171 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
172 --- End of inner exception stack trace ---
173 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
174 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
175*/;
176 }
177
178 // Token: 0x06000553 RID: 1363 RVA: 0x00010480 File Offset: 0x0000E680
179 public override int GetHashCode()
180 {
181 int num;
182 return num.GetHashCode().GetHashCode().GetHashCode();
183 }
184
185 // Token: 0x06000554 RID: 1364 RVA: 0x000104A0 File Offset: 0x0000E6A0
186 public override string ToString()
187 {
188 if (this.build != 0)
189 {
190 int num = this.minor;
191 int num2 = this.patch;
192 int num3 = this.build;
193 string text;
194 return text;
195 }
196 string text2;
197 return text2;
198 }
199
200 // Token: 0x06000555 RID: 1365 RVA: 0x000104D4 File Offset: 0x0000E6D4
201 public string ToShortString()
202 {
203 if (this.build != 0)
204 {
205 int num = this.minor;
206 int num2 = this.patch;
207 int num3 = this.build;
208 string text;
209 return text;
210 }
211 string text2;
212 return text2;
213 }
214
215 // Token: 0x040003FD RID: 1021
217 private int major;
218
219 // Token: 0x040003FE RID: 1022
221 private int minor;
222
223 // Token: 0x040003FF RID: 1023
225 private int patch;
226
227 // Token: 0x04000400 RID: 1024
229 private int build;
230 }
231}
class f__AnonymousType0<< Count > j__TPar
static bool operator>(VersionInfo a, VersionInfo b)
static bool operator!=(VersionInfo a, VersionInfo b)
override bool Equals(object other)
override int GetHashCode()
static bool operator<=(VersionInfo a, VersionInfo b)
VersionInfo(int major, int minor, int patch, int build)
static bool operator==(VersionInfo a, VersionInfo b)
override string ToString()
static VersionInfo Max
static VersionInfo InControlVersion()
static VersionInfo Min
int CompareTo(VersionInfo other)
static VersionInfo UnityVersion()
static bool operator<(VersionInfo a, VersionInfo b)
static bool operator>=(VersionInfo a, VersionInfo b)