mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Don't ignore non-void returns
This commit is contained in:
@@ -55,8 +55,6 @@ partial class Decompiler
|
||||
// End of function
|
||||
if (i + 1 != methodBody.Length)
|
||||
throw new InvalidOperationException("Expected end of function!");
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,6 +184,11 @@ partial class Decompiler
|
||||
);
|
||||
break;
|
||||
|
||||
case OpCode.ReturnValue:
|
||||
var returnStatement = ReturnStatement(IrisExpression.ToSyntax(stack.Pop(), _context));
|
||||
blockStack.Peek().Statements.Add(returnStatement);
|
||||
break;
|
||||
|
||||
case not OpCode.ReturnVoid:
|
||||
if (!TryDecompileExpression(instruction, stack, blockStack))
|
||||
{
|
||||
|
||||
@@ -850,12 +850,14 @@
|
||||
{
|
||||
// Unsupported instruction: CSYM 63
|
||||
;
|
||||
return source;
|
||||
} // TODO: JMP 170
|
||||
}// Unsupported instruction: VTC 960
|
||||
;
|
||||
source = FrameBackgrounds.get_Item(DefaultBackgroundIndex).Value;
|
||||
// Unsupported instruction: CSYM 63
|
||||
;
|
||||
return source;
|
||||
}</Script>
|
||||
</Scripts>
|
||||
</Class>
|
||||
|
||||
Reference in New Issue
Block a user