mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 01:40:47 +00:00
Added Opening ABC file format (*.abc)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user