From f7ec47c024a9d48473e5b948784212eec52f318b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 20 Nov 2022 12:42:33 +0100 Subject: [PATCH] Add extension .abc on ABC saving --- src/com/jpexs/decompiler/flash/gui/Main.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/jpexs/decompiler/flash/gui/Main.java b/src/com/jpexs/decompiler/flash/gui/Main.java index 78710b81f..537262cb3 100644 --- a/src/com/jpexs/decompiler/flash/gui/Main.java +++ b/src/com/jpexs/decompiler/flash/gui/Main.java @@ -1823,6 +1823,12 @@ public class Main { } ((SWF)openable).gfx = true; } + + if (selFilter == abcFilter) { + if (!fileName.toLowerCase(Locale.ENGLISH).endsWith(".abc")) { + fileName += ".abc"; + } + } Main.saveFile(openable, fileName, mode, exeExportMode); Configuration.lastSaveDir.set(file.getParentFile().getAbsolutePath()); return true;