mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 10:36:30 +00:00
Added AS3 Display missing namespaces along traits as §§namespace("url")
Added #1892 AS3 option to select SWF dependencies to properly resolve namespaces, types, etc. (currently in GUI only) Fixed AS3 P-code ValueKind namespaces handling Fixed AS3 direct editation - namespace definition without explicit value
This commit is contained in:
@@ -398,7 +398,10 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
|
||||
@Internal
|
||||
private AbcIndexing abcIndex;
|
||||
|
||||
|
||||
private int numAbcIndexDependencies = 0;
|
||||
|
||||
|
||||
private static AbcIndexing playerGlobalAbcIndex;
|
||||
|
||||
private static AbcIndexing airGlobalAbcIndex;
|
||||
@@ -460,6 +463,24 @@ public final class SWF implements SWFContainerItem, Timelined, Openable {
|
||||
return abcIndex;
|
||||
}
|
||||
|
||||
public int getNumAbcIndexDependencies() {
|
||||
return numAbcIndexDependencies;
|
||||
}
|
||||
|
||||
public void setAbcIndexDependencies(List<SWF> swfs) {
|
||||
abcIndex = null;
|
||||
getAbcIndex();
|
||||
for (SWF swf:swfs) {
|
||||
for (Tag tag:swf.tags) {
|
||||
if (tag instanceof ABCContainerTag) {
|
||||
abcIndex.addAbc(((ABCContainerTag)tag).getABC());
|
||||
}
|
||||
}
|
||||
}
|
||||
abcIndex.rebuildPkgToObjectsNameMap();
|
||||
numAbcIndexDependencies = swfs.size();
|
||||
}
|
||||
|
||||
public static void initPlayer() throws IOException, InterruptedException {
|
||||
if (playerGlobalAbcIndex == null) {
|
||||
/*if (Configuration.getPlayerSWC() == null) {
|
||||
|
||||
Reference in New Issue
Block a user