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
RuntimeLicenseContext.cs
Go to the documentation of this file.
1using System;
5using System.IO;
7
9{
10 // Token: 0x0200040A RID: 1034
12 {
13 // Token: 0x06001C02 RID: 7170 RVA: 0x0004CEA8 File Offset: 0x0004B0A8
14 private string GetLocalPath(string fileName)
15 {
16 string text;
17 string text2;
18 return text + text2;
19 }
20
21 // Token: 0x06001C03 RID: 7171 RVA: 0x0004CEBC File Offset: 0x0004B0BC
22 public override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
23 {
25 if (hashtable != null)
26 {
27 if (hashtable != null)
28 {
29 goto IL_0070;
30 }
31 if (this.savedLicenseKeys == null)
32 {
33 }
34 }
37 Stream stream;
38 if (stream == null)
39 {
40 string text;
41 string fileName = Path.GetFileName(text);
42 string text2 = fileName + ".licenses";
43 if (assemblies != null)
44 {
46 return fileName;
47 }
48 goto IL_0078;
49 }
50 else
51 {
53 string text2;
54 string text3 = text2.ToUpper(invariantCulture2);
55 }
56 IL_0070:
57 if (this.savedLicenseKeys != null)
58 {
59 }
60 IL_0078:
62 if (invariantCulture3 != null)
63 {
64 string text4 = ".licenses" + ".exe.licenses";
65 if (invariantCulture3 != null)
66 {
67 string text5 = ".licenses" + ".dll.licenses";
68 if (invariantCulture3 != null)
69 {
70 }
71 }
72 }
73 while (assemblies != null)
74 {
75 }
76 throw new InvalidCastException();
77 }
78
79 // Token: 0x06001C04 RID: 7172 RVA: 0x0004CF88 File Offset: 0x0004B188
81 {
82 /*
83An exception occurred when decompiling this method (06001C04)
84
85ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream System.ComponentModel.Design.RuntimeLicenseContext::CaseInsensitiveManifestResourceStreamLookup(System.Reflection.Assembly,System.String)
86
87 ---> System.Exception: Basic block has to end with unconditional control flow.
88{
89 Block_1:
90 brtrue(IL_0000, logicnot:bool(ldloc:CultureInfo[exp:bool](var_1_0A)))
91}
92
93 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
94 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
95 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
96 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
97 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
98 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
99 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
100 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
101 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
102 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
103 --- End of inner exception stack trace ---
104 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
105 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
106*/;
107 }
108
109 // Token: 0x06001C05 RID: 7173 RVA: 0x0004CFAC File Offset: 0x0004B1AC
111 {
112 }
113
114 // Token: 0x06001C06 RID: 7174 RVA: 0x0004CFC0 File Offset: 0x0004B1C0
115 // Note: this type is marked as 'beforefieldinit'.
117 {
118 }
119
120 // Token: 0x0400138C RID: 5004
121 private static global::System.Diagnostics.TraceSwitch s_runtimeLicenseContextSwitch;
122
123 // Token: 0x0400138D RID: 5005
125 }
126}
class f__AnonymousType0<< Count > j__TPar
Assembly[] GetAssemblies(bool refOnly)
Definition AppDomain.cs:57
static AppDomain CurrentDomain
Definition AppDomain.cs:49
override string GetSavedLicenseKey(Type type, Assembly resourceAssembly)
Stream CaseInsensitiveManifestResourceStreamLookup(Assembly satellite, string name)
static global::System.Diagnostics.TraceSwitch s_runtimeLicenseContextSwitch
static CultureInfo InvariantCulture
static string GetFileName(string path)
Definition Path.cs:142
static Assembly GetEntryAssembly()
Definition Assembly.cs:237