Save nested on Save as action

This commit is contained in:
Jindra Petřík
2024-08-03 12:16:41 +02:00
parent d81abfe4cf
commit 08f7fe3968
2 changed files with 5 additions and 5 deletions

View File

@@ -1480,6 +1480,10 @@ public class Main {
if (mode == SaveFileMode.EXE) {
saveFileToExe((SWF) openable, exeExportMode, tmpFile);
} else {
if (openable instanceof SWF) {
SWF swf = (SWF) openable;
swf.saveNestedDefineBinaryData();
}
try (FileOutputStream fos = new FileOutputStream(tmpFile); BufferedOutputStream bos = new BufferedOutputStream(fos)) {
openable.saveTo(bos);
}