Fixed: #2575 dumpSWF CLI command displayed import assets GUI dialog

Changed: #2575 dumpSWF CLI command only allows single SWF dump (no imports, etc.)
This commit is contained in:
Jindra Petřík
2025-11-29 16:02:38 +01:00
parent 88f63aecda
commit 922552ccb5
2 changed files with 9 additions and 5 deletions

View File

@@ -6,6 +6,10 @@ All notable changes to this project will be documented in this file.
- [#2570] NullpointerException on SVG export of DefineEditText
- [#2570] ClassCastException on exporting sound head (export all command)
- [#2571] SVG export - StackOverflow for DefineVideoStream
- [#2575] dumpSWF CLI command displayed import assets GUI dialog
### Changed
- [#2575] dumpSWF CLI command only allows single SWF dump (no imports, etc.)
## [24.1.1] - 2025-11-17
### Added
@@ -4050,6 +4054,7 @@ Major version of SWF to XML export changed to 2.
[alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7
[#2570]: https://www.free-decompiler.com/flash/issues/2570
[#2571]: https://www.free-decompiler.com/flash/issues/2571
[#2575]: https://www.free-decompiler.com/flash/issues/2575
[#2556]: https://www.free-decompiler.com/flash/issues/2556
[#2536]: https://www.free-decompiler.com/flash/issues/2536
[#2537]: https://www.free-decompiler.com/flash/issues/2537

View File

@@ -4508,11 +4508,10 @@ public class CommandLineArgumentParser {
if (args.isEmpty()) {
badArguments("dumpswf");
}
try {
Configuration.dumpTags.set(true);
Configuration.parallelSpeedUp.set(false);
OpenableSourceInfo sourceInfo = new OpenableSourceInfo(null, args.pop(), null);
Main.parseOpenable(sourceInfo);
Configuration.dumpTags.set(true);
Configuration.parallelSpeedUp.set(false);
try(InputStream is = new FileInputStream(args.pop())) {
SWF swf = new SWF(is, false, false);
} catch (Exception ex) {
logger.log(Level.SEVERE, null, ex);
System.exit(1);