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
ResourcesAPI.cs
Go to the documentation of this file.
1using System;
4
5namespace UnityEngine
6{
7 // Token: 0x020000D6 RID: 214
8 public class ResourcesAPI
9 {
10 // Token: 0x170000E0 RID: 224
11 // (get) Token: 0x0600045E RID: 1118 RVA: 0x000081F0 File Offset: 0x000063F0
12 internal static ResourcesAPI ActiveAPI
13 {
14 get
15 {
16 if (!true)
17 {
18 }
19 if (!true)
20 {
21 }
22 if (true || !true)
23 {
24 }
25 return 1;
26 }
27 }
28
29 // Token: 0x170000E1 RID: 225
30 // (get) Token: 0x0600045F RID: 1119 RVA: 0x0000820C File Offset: 0x0000640C
32 {
34 get
35 {
36 /*
37An exception occurred when decompiling this method (0600045F)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.ResourcesAPI UnityEngine.ResourcesAPI::get_overrideAPI()
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 IL_0000:
44 brtrue(IL_0000, ldc.i4:bool(1))
45}
46
47 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
48 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
49 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
50 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
51 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
52 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
53 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
54 --- End of inner exception stack trace ---
55 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
56 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
57*/;
58 }
59 }
60
61 // Token: 0x06000460 RID: 1120 RVA: 0x0000821C File Offset: 0x0000641C
62 protected internal ResourcesAPI()
63 {
64 }
65
66 // Token: 0x06000461 RID: 1121 RVA: 0x00008230 File Offset: 0x00006430
67 protected internal virtual Shader FindShaderByName(string name)
68 {
69 throw new MissingMethodException();
70 }
71
72 // Token: 0x06000462 RID: 1122 RVA: 0x00008244 File Offset: 0x00006444
73 protected internal virtual Object Load(string path, Type systemTypeInstance)
74 {
75 throw new MissingMethodException();
76 }
77
78 // Token: 0x06000463 RID: 1123 RVA: 0x00008258 File Offset: 0x00006458
79 protected internal virtual Object[] LoadAll(string path, Type systemTypeInstance)
80 {
81 throw new MissingMethodException();
82 }
83
84 // Token: 0x06000464 RID: 1124 RVA: 0x0000826C File Offset: 0x0000646C
85 protected internal virtual ResourceRequest LoadAsync(string path, Type systemTypeInstance)
86 {
87 throw new MissingMethodException();
88 }
89
90 // Token: 0x06000465 RID: 1125 RVA: 0x00008280 File Offset: 0x00006480
91 protected internal virtual void UnloadAsset(Object assetToUnload)
92 {
93 throw new MissingMethodException();
94 }
95
96 // Token: 0x06000466 RID: 1126 RVA: 0x00008294 File Offset: 0x00006494
97 // Note: this type is marked as 'beforefieldinit'.
98 static ResourcesAPI()
99 {
100 }
101
102 // Token: 0x040003CD RID: 973
104
105 // Token: 0x040003CE RID: 974
109 }
110}
class f__AnonymousType0<< Count > j__TPar
virtual Object Load(string path, Type systemTypeInstance)
virtual Shader FindShaderByName(string name)
static ResourcesAPI ActiveAPI
static ResourcesAPI overrideAPI
static ResourcesAPI< overrideAPI > k__BackingField
virtual void UnloadAsset(Object assetToUnload)
static ResourcesAPI s_DefaultAPI
virtual Object[] LoadAll(string path, Type systemTypeInstance)
virtual ResourceRequest LoadAsync(string path, Type systemTypeInstance)