Fix incorrect PSHT decomp

This commit is contained in:
Yoshi Askharoun
2025-07-20 02:09:49 -05:00
parent 4325bc3e73
commit dc7908b6a9
3 changed files with 6 additions and 4 deletions
+4
View File
@@ -224,6 +224,10 @@ partial class Decompiler
switch (opCode)
{
case OpCode.PushThis:
stack.Push(ThisExpression());
break;
case OpCode.ConstructObject:
case OpCode.ConstructObjectParam:
var typeToCtor = _context.GetImportedType(instruction.Operands.First());
+1 -4
View File
@@ -152,10 +152,6 @@ public partial class Decompiler
stack.Push(null);
break;
case OpCode.PushThis:
stack.Push(elemToInit);
break;
case OpCode.ConstructObject:
var typeToCtor = _context.GetImportedType(instruction.Operands.ElementAt(0));
var xObj = new XElement(_context.GetXName(typeToCtor));
@@ -245,6 +241,7 @@ public partial class Decompiler
break;
case OpCode.ConstructObjectParam:
case OpCode.PushThis:
case OpCode.MethodInvoke:
case OpCode.MethodInvokePeek:
case OpCode.MethodInvokeStatic:
+1
View File
@@ -672,6 +672,7 @@
</Source>
</List>
<Int32 Int32="0" Name="DefaultBackgroundIndex" />
<Image Source="{this.GetDefaultFrameBackground()}" Name="DefaultBackgroundImage" />
<Image Source="res://ZuneShellResources!FirstRunBackground.png" Name="FirstLaunchBackground" />
<Image Source="res://ZuneShellResources!FirstConnectBackground.png" Name="FirstConnectBackground" />
<Image Source="res://ZuneShellResources!FrameBorderLeft.png" NineGrid="0, 2, 0, 2" Name="FrameBorderLeft" />