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
Resources.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine
7{
8 // Token: 0x020000D7 RID: 215
9 [NativeHeader("Runtime/Misc/ResourceManagerUtility.h")]
10 [NativeHeader("Runtime/Export/Resources/Resources.bindings.h")]
11 public sealed class Resources
12 {
13 // Token: 0x06000467 RID: 1127 RVA: 0x000082A4 File Offset: 0x000064A4
15 {
16 throw new InvalidCastException();
17 }
18
19 // Token: 0x06000468 RID: 1128 RVA: 0x000082BC File Offset: 0x000064BC
20 public static Object Load(string path)
21 {
22 if (!true)
23 {
24 }
25 Object @object;
26 return @object;
27 }
28
29 // Token: 0x06000469 RID: 1129 RVA: 0x000082D0 File Offset: 0x000064D0
30 public static T Load<T>(string path) where T : Object
31 {
32 Object @object;
33 while (@object != null)
34 {
35 }
36 throw new InvalidCastException();
37 }
38
39 // Token: 0x0600046A RID: 1130 RVA: 0x000082E8 File Offset: 0x000064E8
40 public static Object Load(string path, Type systemTypeInstance)
41 {
42 /*
43An exception occurred when decompiling this method (0600046A)
44
45ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Object UnityEngine.Resources::Load(System.String,System.Type)
46
47 ---> System.Exception: Basic block has to end with unconditional control flow.
48{
49 IL_0003:
50 stloc:ResourcesAPI(var_0_08, callgetter:ResourcesAPI(ResourcesAPI::get_ActiveAPI))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62
63 // Token: 0x0600046B RID: 1131 RVA: 0x00008300 File Offset: 0x00006500
64 public static ResourceRequest LoadAsync(string path)
65 {
66 if (!true)
67 {
68 }
70 return resourceRequest;
71 }
72
73 // Token: 0x0600046C RID: 1132 RVA: 0x00008314 File Offset: 0x00006514
74 public static ResourceRequest LoadAsync(string path, Type type)
75 {
76 /*
77An exception occurred when decompiling this method (0600046C)
78
79ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.ResourceRequest UnityEngine.Resources::LoadAsync(System.String,System.Type)
80
81 ---> System.Exception: Basic block has to end with unconditional control flow.
82{
83 IL_0003:
84 stloc:ResourcesAPI(var_0_08, callgetter:ResourcesAPI(ResourcesAPI::get_ActiveAPI))
85}
86
87 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
88 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
89 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
90 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
91 --- End of inner exception stack trace ---
92 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
93 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
94*/;
95 }
96
97 // Token: 0x0600046D RID: 1133 RVA: 0x0000832C File Offset: 0x0000652C
98 public static Object[] LoadAll(string path, Type systemTypeInstance)
99 {
100 /*
101An exception occurred when decompiling this method (0600046D)
102
103ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Object[] UnityEngine.Resources::LoadAll(System.String,System.Type)
104
105 ---> System.Exception: Basic block has to end with unconditional control flow.
106{
107 IL_0003:
108 stloc:ResourcesAPI(var_0_08, callgetter:ResourcesAPI(ResourcesAPI::get_ActiveAPI))
109}
110
111 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
112 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
113 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
114 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
115 --- End of inner exception stack trace ---
116 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
117 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
118*/;
119 }
120
121 // Token: 0x0600046E RID: 1134 RVA: 0x000021B3 File Offset: 0x000003B3
122 public static T[] LoadAll<T>(string path) where T : Object
123 {
124 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
125 }
126
127 // Token: 0x0600046F RID: 1135 RVA: 0x00008344 File Offset: 0x00006544
128 [FreeFunction("GetScriptingBuiltinResource", ThrowsException = true)]
129 [TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
130 public static Object GetBuiltinResource([NotNull("ArgumentNullException")] Type type, string path)
131 {
132 throw new MissingMethodException();
133 }
134
135 // Token: 0x06000470 RID: 1136 RVA: 0x00008358 File Offset: 0x00006558
136 public static T GetBuiltinResource<T>(string path) where T : Object
137 {
138 Object @object;
139 while (@object != null)
140 {
141 if (@object == null)
142 {
143 throw new InvalidCastException();
144 }
145 }
146 }
147
148 // Token: 0x06000471 RID: 1137 RVA: 0x00008374 File Offset: 0x00006574
149 public static void UnloadAsset(Object assetToUnload)
150 {
151 if (!true)
152 {
153 }
155 }
156
157 // Token: 0x06000472 RID: 1138 RVA: 0x0000838C File Offset: 0x0000658C
158 [FreeFunction("Resources_Bindings::UnloadUnusedAssets")]
160 {
161 throw new MissingMethodException();
162 }
163 }
164}
class f__AnonymousType0<< Count > j__TPar
static ResourcesAPI ActiveAPI
static T[] LoadAll< T >(string path)
Definition Resources.cs:122
static AsyncOperation UnloadUnusedAssets()
Definition Resources.cs:159
static Object GetBuiltinResource([NotNull("ArgumentNullException")] Type type, string path)
Definition Resources.cs:130
static Object Load(string path, Type systemTypeInstance)
Definition Resources.cs:40
static Object[] LoadAll(string path, Type systemTypeInstance)
Definition Resources.cs:98
static T Load< T >(string path)
Definition Resources.cs:30
static T GetBuiltinResource< T >(string path)
Definition Resources.cs:136
static ResourceRequest LoadAsync(string path, Type type)
Definition Resources.cs:74
static void UnloadAsset(Object assetToUnload)
Definition Resources.cs:149
static Object Load(string path)
Definition Resources.cs:20
static ResourceRequest LoadAsync(string path)
Definition Resources.cs:64
static T[] ConvertObjects< T >(Object[] rawObjects)
Definition Resources.cs:14