Added Label that flex compiler is used (when it's enabled in settings)

Fixed #2111 Flex AS3 editation - use SWF dependencies defined in GUI
Fixed SWF dependencies label was not updated on startup
This commit is contained in:
Jindra Petřík
2023-11-14 22:05:40 +01:00
parent 123a740d22
commit 4125e94ca3
19 changed files with 141 additions and 49 deletions

View File

@@ -4240,7 +4240,7 @@ public class CommandLineArgumentParser {
}
};
new AS2ScriptImporter().importScripts(scriptsFolder, swf.getASMs(true), listener);
new AS3ScriptImporter().importScripts(As3ScriptReplacerFactory.createByConfig(air), scriptsFolder, swf.getAS3Packs(), listener);
new AS3ScriptImporter().importScripts(As3ScriptReplacerFactory.createByConfig(air), scriptsFolder, swf.getAS3Packs(), listener, Main.getDependencies(swf));
try {
try (OutputStream fos = new BufferedOutputStream(new FileOutputStream(outFile))) {
@@ -4395,7 +4395,7 @@ public class CommandLineArgumentParser {
}
try {
pack.abc.replaceScriptPack(scriptReplacer, pack, as);
pack.abc.replaceScriptPack(scriptReplacer, pack, as, Main.getDependencies(pack.abc.getSwf()));
} catch (As3ScriptReplaceException asre) {
for (As3ScriptReplaceExceptionItem item : asre.getExceptionItems()) {
String r = "%error% on line %line%, column %col%, file: %file%".replace("%error%", "" + item.getMessage());