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

◆ GetSafeArea()

Rect DeviceVPPICalculator.GetSafeArea ( )
inlineinherited

Definition at line 234 of file DeviceVPPICalculator.cs.

235 {
236 /*
237An exception occurred when decompiling this method (060011D9)
238
239ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect DeviceVPPICalculator::GetSafeArea()
240
241 ---> System.Exception: Basic block has to end with unconditional control flow.
242{
243 IL_000A:
244 stloc:int32(var_4_11, callgetter:int32(Screen::get_width))
245 stloc:int32(var_7_1B, callgetter:int32(Screen::get_width))
246 stloc:int32(var_10_25, callgetter:int32(Screen::get_height))
247 stloc:int32(var_13_2F, callgetter:int32(Screen::get_height))
248 stloc:Preferences(var_15_39, callgetter:Preferences(Main::get_Configuration))
249 stloc:Preferences(var_18_43, callgetter:Preferences(Main::get_Configuration))
250 stloc:Preferences(var_21_4D, callgetter:Preferences(Main::get_Configuration))
251 stloc:Preferences(var_24_57, callgetter:Preferences(Main::get_Configuration))
252 stloc:int32(var_28_61, callgetter:int32(Screen::get_width))
253 stloc:int32(var_31_6B, callgetter:int32(Screen::get_width))
254 stloc:int32(var_34_75, callgetter:int32(Screen::get_height))
255 stloc:int32(var_37_7F, callgetter:int32(Screen::get_height))
256 stloc:Rect(var_39_87, call:Rect(DeviceVPPICalculator::GetDefaultSafeArea, ldloc:DeviceVPPICalculator(this)))
257 stloc:DeviceOrientation(var_41_91, callgetter:DeviceOrientation(Input::get_deviceOrientation))
258 stfld:DeviceOrientation(DeviceVPPICalculator::_cachedOrientation, ldloc:DeviceVPPICalculator(this), ldc.i4:DeviceOrientation(3))
259 stfld:DeviceOrientation(DeviceVPPICalculator::_cachedOrientation, ldloc:DeviceVPPICalculator(this), ldc.i4:DeviceOrientation(4))
260 stloc:DeviceOrientation(var_42_A7, ldfld:DeviceOrientation(DeviceVPPICalculator::_cachedOrientation, ldloc:DeviceVPPICalculator(this)))
261 stloc:int32(var_44_B1, callgetter:int32(Screen::get_width))
262}
263
264 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
265 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
266 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
267 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
268 --- End of inner exception stack trace ---
269 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
270 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
271*/;
272 }

Referenced by DeviceVPPICalculator.GetViewportSafeRegion().