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

◆ GetSelectedItemRegion()

Rectangle GUIControllerStaticGridNavigator.GetSelectedItemRegion ( )
inline

Definition at line 518 of file GUIControllerStaticGridNavigator.cs.

519 {
520 /*
521An exception occurred when decompiling this method (0600063C)
522
523ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Rectangle GUIControllerStaticGridNavigator::GetSelectedItemRegion()
524
525 ---> System.Exception: Basic block has to end with unconditional control flow.
526{
527 IL_00CD:
528 stloc:bool(var_26_D3, callgetter:bool(GUIControllerStaticGridNavigator::get_LeftSideController, ldloc:GUIControllerStaticGridNavigator(this)))
529 stloc:GetGrid(var_27_DB, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
530 stloc:int32(var_28_E3, ldfld:int32(GUIControllerStaticGridNavigator::itemColumn, ldloc:GUIControllerStaticGridNavigator(this)))
531 stloc:native int(var_29_EC, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_27_DB)))
532 stloc:native int(var_30_F5, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_27_DB)))
533 stloc:native int(var_31_FE, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_27_DB)))
534 stloc:GetGrid(var_32_106, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
535 stloc:native int(var_33_10F, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_32_106)))
536 stloc:native int(var_34_118, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_32_106)))
537 stloc:native int(var_35_121, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_32_106)))
538 stloc:GetGrid(var_36_129, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
539 stloc:int32(var_37_131, ldfld:int32(GUIControllerStaticGridNavigator::itemColumn, ldloc:GUIControllerStaticGridNavigator(this)))
540 stloc:native int(var_38_13A, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_36_129)))
541 stloc:native int(var_39_143, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_36_129)))
542 stloc:native int(var_40_14C, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_36_129)))
543 stloc:GetGrid(var_41_154, ldfld:GetGrid(GUIControllerStaticGridNavigator::_grid, ldloc:GUIControllerStaticGridNavigator(this)))
544 stloc:native int(var_42_15D, ldfld:native int(Delegate::invoke_impl, ldloc:GetGrid[exp:Delegate](var_41_154)))
545 stloc:native int(var_43_166, ldfld:native int(Delegate::method_code, ldloc:GetGrid[exp:Delegate](var_41_154)))
546 stloc:native int(var_44_16F, ldfld:native int(Delegate::method, ldloc:GetGrid[exp:Delegate](var_41_154)))
547}
548
549 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
550 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
551 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
552 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
553 --- End of inner exception stack trace ---
554 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
555 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
556*/;
557 }

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