mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-27 22:25:46 +00:00
Fixed #1782 FLA export - exporting from SWF files inside bundles (like binarysearch)
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [Unreleased]
|
||||
- [#1860] FLA export - EmptyStackException during exporting MorphShapes
|
||||
- [#1860] FLA export - EmptyStackException during exporting MorphShape
|
||||
- [#1782] FLA export - exporting from SWF files inside bundles (like binarysearch)
|
||||
|
||||
## [16.0.3] - 2022-11-02
|
||||
### Fixed
|
||||
@@ -2455,6 +2456,7 @@ All notable changes to this project will be documented in this file.
|
||||
[alpha 8]: https://github.com/jindrapetrik/jpexs-decompiler/compare/alpha7...alpha8
|
||||
[alpha 7]: https://github.com/jindrapetrik/jpexs-decompiler/releases/tag/alpha7
|
||||
[#1860]: https://www.free-decompiler.com/flash/issues/1860
|
||||
[#1782]: https://www.free-decompiler.com/flash/issues/1782
|
||||
[#1817]: https://www.free-decompiler.com/flash/issues/1817
|
||||
[#1816]: https://www.free-decompiler.com/flash/issues/1816
|
||||
[#1859]: https://www.free-decompiler.com/flash/issues/1859
|
||||
|
||||
@@ -2416,9 +2416,19 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
fc.setCurrentDirectory(new File(selDir));
|
||||
if (!selDir.endsWith(File.separator)) {
|
||||
selDir += File.separator;
|
||||
}
|
||||
String swfShortName = swf.getShortFileName();
|
||||
if ("".equals(swfShortName)) {
|
||||
swfShortName = "untitled.swf";
|
||||
}
|
||||
String fileName = new File(swf.getFile()).getName();
|
||||
fileName = fileName.substring(0, fileName.length() - 4) + ".fla";
|
||||
String fileName;
|
||||
if (swfShortName.contains(".")) {
|
||||
fileName = swfShortName.substring(0, swfShortName.lastIndexOf(".")) + ".fla";
|
||||
} else {
|
||||
fileName = swfShortName + ".fla";
|
||||
}
|
||||
final String fSwfShortName = swfShortName;
|
||||
|
||||
fc.setSelectedFile(new File(selDir + fileName));
|
||||
List<FileFilter> flaFilters = new ArrayList<>();
|
||||
List<FileFilter> xflFilters = new ArrayList<>();
|
||||
@@ -2484,9 +2494,9 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se
|
||||
try {
|
||||
AbortRetryIgnoreHandler errorHandler = new GuiAbortRetryIgnoreHandler();
|
||||
if (compressed) {
|
||||
swf.exportFla(errorHandler, selfile.getAbsolutePath(), new File(swf.getFile()).getName(), ApplicationInfo.APPLICATION_NAME, ApplicationInfo.applicationVerName, ApplicationInfo.version, Configuration.parallelSpeedUp.get(), selectedVersion);
|
||||
swf.exportFla(errorHandler, selfile.getAbsolutePath(), fSwfShortName, ApplicationInfo.APPLICATION_NAME, ApplicationInfo.applicationVerName, ApplicationInfo.version, Configuration.parallelSpeedUp.get(), selectedVersion);
|
||||
} else {
|
||||
swf.exportXfl(errorHandler, selfile.getAbsolutePath(), new File(swf.getFile()).getName(), ApplicationInfo.APPLICATION_NAME, ApplicationInfo.applicationVerName, ApplicationInfo.version, Configuration.parallelSpeedUp.get(), selectedVersion);
|
||||
swf.exportXfl(errorHandler, selfile.getAbsolutePath(), fSwfShortName, ApplicationInfo.APPLICATION_NAME, ApplicationInfo.applicationVerName, ApplicationInfo.version, Configuration.parallelSpeedUp.get(), selectedVersion);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
logger.log(Level.SEVERE, "FLA export error", ex);
|
||||
|
||||
Reference in New Issue
Block a user