Added Opening ABC file format (*.abc)

This commit is contained in:
Jindra Petřík
2022-11-20 22:12:19 +01:00
parent dd63487dd8
commit 344bdfa6ea
70 changed files with 1576 additions and 906 deletions
@@ -20,6 +20,7 @@ import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.SWFInputStream;
import com.jpexs.decompiler.flash.tags.Tag;
import com.jpexs.decompiler.flash.tags.TagStub;
import com.jpexs.decompiler.flash.treeitems.Openable;
import com.jpexs.decompiler.flash.treeitems.TreeItem;
import java.io.IOException;
import java.util.ArrayList;
@@ -147,13 +148,13 @@ public class DumpInfo implements TreeItem {
}
@Override
public SWF getSwf() {
public Openable getOpenable() {
Tag tag = tagToResolve != null ? tagToResolve : resolvedTag;
if (tag != null) {
return tag.getSwf();
return tag.getOpenable();
}
return DumpInfoSwfNode.getSwfNode(this).getSwf();
return DumpInfoSwfNode.getSwfNode(this).getOpenable();
}
@Override
@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.dumpview;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.treeitems.Openable;
/**
*
@@ -24,16 +25,20 @@ import com.jpexs.decompiler.flash.SWF;
*/
public class DumpInfoSwfNode extends DumpInfo {
private final SWF swf;
private final Openable openable;
public DumpInfoSwfNode(SWF swf, String name, String type, Object value, long startByte, long lengthBytes) {
public DumpInfoSwfNode(Openable openable, String name, String type, Object value, long startByte, long lengthBytes) {
super(name, type, value, startByte, lengthBytes);
this.swf = swf;
this.openable = openable;
}
@Override
public Openable getOpenable() {
return openable;
}
public SWF getSwf() {
return swf;
return (SWF) openable;
}
public static DumpInfoSwfNode getSwfNode(DumpInfo dumpInfo) {