mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
Fix incorrect PSHT decomp
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user