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

◆ CreateClone()

IEntryIcon Terraria.GameContent.Bestiary.CustomEntryIcon.CreateClone ( )
inline

Implements Terraria.GameContent.Bestiary.IEntryIcon.

Definition at line 21 of file CustomEntryIcon.cs.

22 {
23 /*
24An exception occurred when decompiling this method (060047A5)
25
26ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.GameContent.Bestiary.IEntryIcon Terraria.GameContent.Bestiary.CustomEntryIcon::CreateClone()
27
28 ---> System.Exception: Basic block has to end with unconditional control flow.
29{
30 Block_0:
31 stloc:LocalizedText(var_0_06, ldfld:LocalizedText(CustomEntryIcon::_text, ldloc:CustomEntryIcon(this)))
32 stloc:class ReLogic.Content.Asset`1<class Microsoft.Xna.Framework.Graphics.Texture2D>(var_1_0D, ldfld:class ReLogic.Content.Asset`1<class Microsoft.Xna.Framework.Graphics.Texture2D>(CustomEntryIcon::_textureAsset, ldloc:CustomEntryIcon(this)))
33 stloc:class [mscorlib]System.Func`1<bool>(var_2_14, ldfld:class [mscorlib]System.Func`1<bool>(CustomEntryIcon::_unlockCondition, ldloc:CustomEntryIcon(this)))
34 stloc:string(var_3_1B, ldfld:string(LocalizedText::Key, ldloc:LocalizedText(var_0_06)))
35 stloc:string(var_4_22, ldfld:string(Asset`1::<Name>k__BackingField, ldloc:class ReLogic.Content.Asset`1<class Microsoft.Xna.Framework.Graphics.Texture2D>[exp:Asset`1](var_1_0D)))
36}
37
38 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
39 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
40 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
41 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
42 --- End of inner exception stack trace ---
43 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
44 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
45*/;
46 }