mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 10:00:52 +00:00
#1333 Exporting sprites as swf files
This commit is contained in:
@@ -2173,7 +2173,8 @@ public class AVM2Code implements Cloneable {
|
||||
ins.operands[j] = updater.updateOperandOffset(target, ins.operands[j]);
|
||||
}
|
||||
}*/ //Faster, but not so universal
|
||||
if (ins.definition instanceof IfTypeIns) {
|
||||
{
|
||||
if (ins.definition instanceof IfTypeIns) {
|
||||
long target = ins.getTargetAddress();
|
||||
try {
|
||||
ins.operands[0] = updater.updateOperandOffset(ins.getAddress(), target, ins.operands[0]);
|
||||
@@ -2181,6 +2182,7 @@ public class AVM2Code implements Cloneable {
|
||||
throw new ConvertException("Invalid offset (" + ins + ")", i);
|
||||
}
|
||||
}
|
||||
}
|
||||
ins.setAddress(updater.updateInstructionOffset(ins.getAddress()));
|
||||
//Note: changing operands here does not change instruction byte length as offsets are always S24 (not variable length)
|
||||
}
|
||||
@@ -2605,7 +2607,7 @@ public class AVM2Code implements Cloneable {
|
||||
return stats;
|
||||
}
|
||||
|
||||
// simplified varions of getStats. This method calculates only the maxlocal value
|
||||
// simplified version of getStats. This method calculates only the maxlocal value
|
||||
public CodeStats getMaxLocal() {
|
||||
CodeStats stats = new CodeStats();
|
||||
for (AVM2Instruction ins : code) {
|
||||
|
||||
Reference in New Issue
Block a user