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

◆ GetShaderFromItemId()

ArmorShaderData Terraria.Graphics.Shaders.ArmorShaderDataSet.GetShaderFromItemId ( int type)
inline

Definition at line 38 of file ArmorShaderDataSet.cs.

39 {
40 /*
41An exception occurred when decompiling this method (06003D5D)
42
43ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Graphics.Shaders.ArmorShaderData Terraria.Graphics.Shaders.ArmorShaderDataSet::GetShaderFromItemId(System.Int32)
44
45 ---> System.Exception: Basic block has to end with unconditional control flow.
46{
47 Block_0:
48 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(ArmorShaderDataSet::_shaderLookupDictionary, ldloc:ArmorShaderDataSet(this)))
49 stloc:class [mscorlib]System.Collections.Generic.List`1<class Terraria.Graphics.Shaders.ArmorShaderData>(var_1_0D, ldfld:class [mscorlib]System.Collections.Generic.List`1<class Terraria.Graphics.Shaders.ArmorShaderData>(ArmorShaderDataSet::_shaderData, ldloc:ArmorShaderDataSet(this)))
50 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(var_2_14, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<int32, int32>(ArmorShaderDataSet::_shaderLookupDictionary, ldloc:ArmorShaderDataSet(this)))
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 }