mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:50:51 +00:00
Display DoInitAction tags in correct order
This commit is contained in:
@@ -1790,6 +1790,15 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
subNodes.addAll(timeline.getAS2RootPackage().subPackages.values());
|
||||
subNodes.addAll(timeline.getAS2RootPackage().scripts.values());
|
||||
|
||||
for (ASMSource ass : timeline.asmSources) {
|
||||
if (ass instanceof DoInitActionTag) {
|
||||
String exportName = getExportName(((DoInitActionTag) ass).spriteId);
|
||||
if (exportName == null) {
|
||||
subNodes.add(ass);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (Tag tag : timeline.otherTags) {
|
||||
boolean hasInnerFrames = false;
|
||||
List<TreeItem> tagSubNodes = new ArrayList<>();
|
||||
|
||||
@@ -99,7 +99,7 @@ public class Timeline {
|
||||
|
||||
private final Map<Integer, Integer> depthMaxFrame = new HashMap<>();
|
||||
|
||||
private final List<ASMSource> asmSources = new ArrayList<>();
|
||||
public final List<ASMSource> asmSources = new ArrayList<>();
|
||||
|
||||
private final List<ASMSourceContainer> asmSourceContainers = new ArrayList<>();
|
||||
|
||||
@@ -448,7 +448,9 @@ public class Timeline {
|
||||
if (asm instanceof DoInitActionTag) {
|
||||
DoInitActionTag initAction = (DoInitActionTag) asm;
|
||||
String path = swf.getExportName(initAction.spriteId);
|
||||
path = path != null ? path : "__doinit__" + initAction.spriteId;
|
||||
if (path == null) {
|
||||
continue;
|
||||
}
|
||||
if (path.isEmpty()) {
|
||||
path = initAction.getExportFileName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user