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
AssetLoader.cs
Go to the documentation of this file.
1using System;
4
5namespace ReLogic.Content
6{
7 // Token: 0x02000B3A RID: 2874
8 public class AssetLoader : IAssetLoader
9 {
10 // Token: 0x060053D1 RID: 21457 RVA: 0x00284FD8 File Offset: 0x002831D8
14
15 // Token: 0x060053D2 RID: 21458 RVA: 0x00284FEC File Offset: 0x002831EC
16 public bool TryLoad<T>(string assetName, IContentSource source, [Out] T resultAsset) where T : class
17 {
18 /*
19An exception occurred when decompiling this method (060053D2)
20
21ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean ReLogic.Content.AssetLoader::TryLoad<T>(System.String,ReLogic.Content.Sources.IContentSource,T)
22
23 ---> System.Exception: Basic block has to end with unconditional control flow.
24{
25 Block_0:
26 stloc:AssetReaderCollection(var_0_06, ldfld:AssetReaderCollection(AssetLoader::_readers, ldloc:AssetLoader(this)))
27 stloc:AssetReaderCollection(var_2_0D, ldfld:AssetReaderCollection(AssetLoader::_readers, ldloc:AssetLoader(this)))
28 stloc:int64(var_3_14, ldfld:int64(int64::m_value, ldc.i4:int32[exp:int64&](0)))
29}
30
31 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
32 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
33 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
34 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
35 --- End of inner exception stack trace ---
36 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
37 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
38*/;
39 }
40
41 // Token: 0x04008CF6 RID: 36086
43 }
44}
class f__AnonymousType0<< Count > j__TPar
bool TryLoad< T >(string assetName, IContentSource source, [Out] T resultAsset)
readonly AssetReaderCollection _readers
AssetLoader(AssetReaderCollection readers)