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

◆ GetNavigationOutDirs()

int GUIControllerStaticGridNavigator.GetNavigationOutDirs ( )
inline

Definition at line 158 of file GUIControllerStaticGridNavigator.cs.

159 {
160 /*
161An exception occurred when decompiling this method (0600062F)
162
163ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 GUIControllerStaticGridNavigator::GetNavigationOutDirs()
164
165 ---> System.Exception: Basic block has to end with unconditional control flow.
166{
167 IL_004F:
168 stloc:bool(var_8_55, callgetter:bool(GUIControllerStaticGridNavigator::get_LeftSideController, ldloc:GUIControllerStaticGridNavigator(this)))
169 stloc:int32(var_9_5D, ldfld:int32(GUIControllerStaticGridNavigator::itemColumn, ldloc:GUIControllerStaticGridNavigator(this)))
170 stloc:GetGrid(var_10_65, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
171 stloc:native int(var_11_6E, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_10_65)))
172 stloc:native int(var_12_77, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_10_65)))
173 stloc:native int(var_13_80, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_10_65)))
174 stloc:bool(var_14_88, callgetter:bool(GUIControllerStaticGridNavigator::get_LeftSideController, ldloc:GUIControllerStaticGridNavigator(this)))
175 stloc:GetGrid(var_15_90, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
176 stloc:int32(var_16_98, ldfld:int32(GUIControllerStaticGridNavigator::itemColumn, ldloc:GUIControllerStaticGridNavigator(this)))
177 stloc:native int(var_17_A1, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_15_90)))
178 stloc:native int(var_18_AA, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_15_90)))
179 stloc:native int(var_19_B3, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_15_90)))
180 stloc:bool(var_20_BB, callgetter:bool(GUIControllerStaticGridNavigator::get_LeftSideController, ldloc:GUIControllerStaticGridNavigator(this)))
181 stloc:GetCollectionCount(var_21_C3, ldfld:GetCollectionCount(GUIControllerStaticGridNavigator::_menuItemCount, ldloc:GUIControllerStaticGridNavigator(this)))
182 stloc:native int(var_23_CF, ldfld:native int(Delegate::invoke_impl, ldloc:GetCollectionCount[exp:Delegate](var_21_C3)))
183 stloc:native int(var_24_D8, ldfld:native int(Delegate::method_code, ldloc:GetCollectionCount[exp:Delegate](var_21_C3)))
184 stloc:native int(var_25_E1, ldfld:native int(Delegate::method, ldloc:GetCollectionCount[exp:Delegate](var_21_C3)))
185 stloc:int32(var_26_E9, ldfld:int32(GUIControllerStaticGridNavigator::menuRow, ldloc:GUIControllerStaticGridNavigator(this)))
186 stloc:int32(var_27_F1, ldfld:int32(GUIControllerStaticGridNavigator::itemRow, ldloc:GUIControllerStaticGridNavigator(this)))
187 stloc:GetGrid(var_28_F9, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
188 stloc:native int(var_29_102, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_28_F9)))
189 stloc:native int(var_30_10B, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_28_F9)))
190 stloc:native int(var_31_114, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_28_F9)))
191 stloc:bool(var_32_11C, callgetter:bool(GUIControllerStaticGridNavigator::get_LeftSideController, ldloc:GUIControllerStaticGridNavigator(this)))
192 stloc:int32(var_33_124, ldfld:int32(GUIControllerStaticGridNavigator::itemRow, ldloc:GUIControllerStaticGridNavigator(this)))
193}
194
195 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
196 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
197 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
198 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
199 --- End of inner exception stack trace ---
200 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
201 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
202*/;
203 }

Referenced by GUIControllerChest4Page.GetNavigationOutDirs(), and GUIControllerShop4Page.GetNavigationOutDirs().