mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-26 21:35:16 +00:00
Added Flattened ActionScript packages (one row per package instead package tree), can be turned off in settings
Changes ActionScript packages are by default flattened
This commit is contained in:
@@ -1973,6 +1973,19 @@ public final class SWF implements SWFContainerItem, Timelined {
|
||||
}
|
||||
|
||||
private String getASMPath(boolean exportFileName, TreeItem treeItem) {
|
||||
|
||||
if (treeItem instanceof AS2Package) {
|
||||
AS2Package pkg = (AS2Package) treeItem;
|
||||
if (pkg.isFlat()) {
|
||||
String parts[] = pkg.toString().split("\\.");
|
||||
for (int i = 0; i < parts.length; i++) {
|
||||
parts[i] = Helper.makeFileName(parts[i]);
|
||||
}
|
||||
return String.join(File.separator, parts);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!exportFileName) {
|
||||
return treeItem.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user