Fixed #1185 AS3 Incorrect imports in obfuscated files

This commit is contained in:
Jindra Petřík
2021-02-10 18:22:05 +01:00
parent 273173771f
commit b2fd1c0dc5
12 changed files with 81 additions and 49 deletions

View File

@@ -1128,7 +1128,11 @@ public class CommandLineArgumentParser {
final File swfFile = new File(args.pop());
processReadSWF(swfFile, null, (SWF swf, OutputStream stdout) -> {
SwfToSwcExporter exporter = new SwfToSwcExporter();
exporter.exportSwf(swf, outFile, false);
try {
exporter.exportSwf(swf, outFile, false);
} catch (IOException | InterruptedException ex) {
Logger.getLogger(CommandLineArgumentParser.class.getName()).log(Level.SEVERE, null, ex);
}
});
}
@@ -1160,6 +1164,7 @@ public class CommandLineArgumentParser {
badArguments("getinstancemetadata");
}
processReadSWF(swfFile, stdOutFile, (SWF swf, OutputStream stdout) -> {
LinkReportExporter lre = new LinkReportExporter();
List<ScriptPack> reportPacks;
@@ -1170,9 +1175,12 @@ public class CommandLineArgumentParser {
System.exit(1);
return;
}
String reportStr = lre.generateReport(swf, reportPacks, null);
stdout.write(reportStr.getBytes("UTF-8"));
try {
String reportStr = lre.generateReport(swf, reportPacks, null);
stdout.write(reportStr.getBytes("UTF-8"));
} catch (InterruptedException ex) {
System.err.println("Report generation interrupted");
}
});
}