diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d2cce350..040ea9774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,12 @@ All notable changes to this project will be documented in this file. ### Changed - AS1/2 - Single DoAction tag inside frame is now displayed directly as frame node so there is no longer need to expand frame nodes (useful for fast switching scripts) +- AS1/2 - Scripts from default package (not these inside `__Packages`) are now + exported/imported to/from the folder named `__defaultPackage` for all languages + instead of localized `` before. + This may break backwards compatibility. For importing scripts from older + versions of FFDec, you should rename the folder to the new name. + ### Fixed - [#2456] FLA export - NullPointer exception while exporting to CS4 or lower via commandline diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java index 45293ff99..9644a00b1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java @@ -3325,6 +3325,9 @@ public final class SWF implements SWFContainerItem, Timelined, Openable { if (treeItem instanceof AS2Package) { AS2Package pkg = (AS2Package) treeItem; + if (pkg.isDefaultPackage() && exportFileName) { + return "__defaultPackage"; + } if (pkg.isFlat()) { String[] parts = pkg.toString().split("\\."); for (int i = 0; i < parts.length; i++) {