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

◆ Clip() [1/2]

bool Microsoft.Xna.Framework.Graphics.Clipper.Clip ( SpriteBatcher::VertexData p0,
SpriteBatcher::VertexData p1,
SpriteBatcher::VertexData p2,
SpriteBatcher::VertexData p3,
int clipLeft,
int clipRight,
int clipTop,
int clipBottom,
[Out] int numResultPoints,
[Out] SpriteBatcher::VertexData[] result )
inlineprivate

Definition at line 153 of file Clipper.cs.

154 {
155 /*
156An exception occurred when decompiling this method (06001660)
157
158ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.Clipper::Clip(Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData,Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData,Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData,Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[])
159
160 ---> System.Exception: Basic block has to end with unconditional control flow.
161{
162 IL_0327:
163 stloc:int32(var_73_32D, ldfld:int32(Clipper::outputCount, ldloc:Clipper(this)))
164 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_76_33C, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::input, ldloc:Clipper(this)))
165 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_77_344, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::output, ldloc:Clipper(this)))
166 stloc:int32(var_78_34C, ldfld:int32(Clipper::outputCount, ldloc:Clipper(this)))
167 stfld:int32(Clipper::outputCount, ldloc:Clipper(this), ldloc:int32(var_78_34C))
168 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_79_35C, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::input, ldloc:Clipper(this)))
169 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_80_364, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::output, ldloc:Clipper(this)))
170 stloc:int32(var_81_36C, ldfld:int32(Clipper::outputCount, ldloc:Clipper(this)))
171 stfld:int32(Clipper::outputCount, ldloc:Clipper(this), ldloc:int32(var_78_34C))
172 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_82_37C, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::input, ldloc:Clipper(this)))
173 stloc:Color32(var_84_389, ldfld:Color32(VertexData::Color, ldloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[][exp:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData&](var_82_37C)))
174 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_85_391, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::output, ldloc:Clipper(this)))
175 stloc:int32(var_86_399, ldfld:int32(Clipper::outputCount, ldloc:Clipper(this)))
176 stfld:int32(Clipper::outputCount, ldloc:Clipper(this), ldloc:int32(var_78_34C))
177 stfld:Vector2(VertexData::Position, ldloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[][exp:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData&](var_46), ldloc:int32[exp:Vector2](var_78_34C))
178 stloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](var_87_3B2, ldfld:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[](Clipper::output, ldloc:Clipper(this)))
179 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](var_47), ldloc:valuetype Microsoft.Xna.Framework.Graphics.SpriteBatcher/VertexData[][exp:int32](var_87_3B2))
180}
181
182 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
183 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
184 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
185 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
186 --- End of inner exception stack trace ---
187 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
188 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
189*/;
190 }