mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-24 22:46:14 +00:00
not creating always new instruction definition objects
This commit is contained in:
@@ -123,7 +123,7 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
|
||||
+ "pushtrue\r\n"
|
||||
+ "pop\r\n"
|
||||
+ "label1:pushfalse\r\n");
|
||||
b.getCode().replaceInstruction(getBaseAddr() + 2, new AVM2Instruction(0, new DeobfuscatePopIns(), new int[]{}), b);
|
||||
b.getCode().replaceInstruction(getBaseAddr() + 2, new AVM2Instruction(0, DeobfuscatePopIns.getInstance(), new int[]{}), b);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -135,6 +135,6 @@ public class ActionScript3AssemblerTest extends ActionScriptTestBase {
|
||||
+ "jump label1\r\n" //remove this
|
||||
+ "pop\r\n"
|
||||
+ "label1:pushfalse\r\n");
|
||||
b.getCode().replaceInstruction(getBaseAddr() + 4, new AVM2Instruction(0, new DeobfuscatePopIns(), new int[]{}), b);
|
||||
b.getCode().replaceInstruction(getBaseAddr() + 4, new AVM2Instruction(0, DeobfuscatePopIns.getInstance(), new int[]{}), b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user