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
OperatingSystem.cs
Go to the documentation of this file.
1using System;
4
5namespace System
6{
7 // Token: 0x02000130 RID: 304
10 {
11 // Token: 0x06000BD2 RID: 3026 RVA: 0x0001A4EC File Offset: 0x000186EC
12 public OperatingSystem(PlatformID platform, Version version)
13 {
14 }
15
16 // Token: 0x06000BD3 RID: 3027 RVA: 0x0001A4FC File Offset: 0x000186FC
17 internal OperatingSystem(PlatformID platform, Version version, string servicePack)
18 {
19 do
20 {
21 base..ctor();
22 }
23 while (version == null);
24 this._platform = platform;
25 this._version = version;
27 }
28
29 // Token: 0x06000BD4 RID: 3028 RVA: 0x0000207A File Offset: 0x0000027A
31 {
32 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
33 }
34
35 // Token: 0x17000104 RID: 260
36 // (get) Token: 0x06000BD5 RID: 3029 RVA: 0x0001A528 File Offset: 0x00018728
38 {
39 get
40 {
41 return this._platform;
42 }
43 }
44
45 // Token: 0x06000BD6 RID: 3030 RVA: 0x0001A53C File Offset: 0x0001873C
46 public object Clone()
47 {
48 /*
49An exception occurred when decompiling this method (06000BD6)
50
51ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object System.OperatingSystem::Clone()
52
53 ---> System.Exception: Basic block has to end with unconditional control flow.
54{
55 Block_0:
56 stloc:PlatformID(var_0_06, ldfld:PlatformID(OperatingSystem::_platform, ldloc:OperatingSystem(this)))
57 stloc:Version(var_1_0D, ldfld:Version(OperatingSystem::_version, ldloc:OperatingSystem(this)))
58 stloc:string(var_2_14, ldfld:string(OperatingSystem::_servicePack, ldloc:OperatingSystem(this)))
59}
60
61 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
62 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
63 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
64 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
65 --- End of inner exception stack trace ---
66 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
67 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
68*/;
69 }
70
71 // Token: 0x06000BD7 RID: 3031 RVA: 0x0001A560 File Offset: 0x00018760
72 public override string ToString()
73 {
74 return this.VersionString;
75 }
76
77 // Token: 0x17000105 RID: 261
78 // (get) Token: 0x06000BD8 RID: 3032 RVA: 0x0001A574 File Offset: 0x00018774
79 public string VersionString
80 {
81 get
82 {
83 string versionString = this._versionString;
84 if (versionString == null)
85 {
86 PlatformID platform = this._platform;
87 return versionString;
88 }
89 string text;
90 return text;
91 }
92 }
93
94 // Token: 0x040004CA RID: 1226
96
97 // Token: 0x040004CB RID: 1227
99
100 // Token: 0x040004CC RID: 1228
101 private readonly string _servicePack;
102
103 // Token: 0x040004CD RID: 1229
104 private string _versionString;
105 }
106}
class f__AnonymousType0<< Count > j__TPar
OperatingSystem(PlatformID platform, Version version)
readonly string _servicePack
override string ToString()
void GetObjectData(SerializationInfo info, StreamingContext context)
OperatingSystem(PlatformID platform, Version version, string servicePack)
readonly Version _version
readonly PlatformID _platform