mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 19:00:43 +00:00
AS2 disassembler fixed (jump to the middle of the instuction)
This commit is contained in:
@@ -50,8 +50,8 @@ public class ActionWith extends Action implements GraphSourceItemContainer {
|
||||
return false;
|
||||
}
|
||||
|
||||
public ActionWith(SWFInputStream sis, ReReadableInputStream rri, int version) throws IOException {
|
||||
super(0x94, 2);
|
||||
public ActionWith(int actionLength, SWFInputStream sis, ReReadableInputStream rri, int version) throws IOException {
|
||||
super(0x94, actionLength);
|
||||
codeSize = sis.readUI16();
|
||||
this.version = version;
|
||||
}
|
||||
@@ -107,6 +107,16 @@ public class ActionWith extends Action implements GraphSourceItemContainer {
|
||||
return ret;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setContainerSize(int index, long size) {
|
||||
if (index == 0) {
|
||||
codeSize = (int) size;
|
||||
}
|
||||
else {
|
||||
throw new IllegalArgumentException("Index must be 0.");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getASMSourceBetween(int pos) {
|
||||
return "";
|
||||
|
||||
Reference in New Issue
Block a user