diff --git a/CHANGELOG.md b/CHANGELOG.md index ecf7822dd..3f055c025 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file. - Updated Flash player to SWF version map - Harman AIR 51 float support compatibility - FlashDevelop project export - option to export AIR project (select correct type in the file save dialog) -- FLA/FlashDevelop/IDEA export - A link to all classes (sound, font, images) is added so no class is missed during compilation +- FLA/FlashDevelop/IDEA export - option to add link to all classes (sound, font, images) so no class is missed during compilation ### Fixed - [#2266] StartSound/2 and VideoFrame tags, classNames not taken as dependencies (needed chars) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java index 30f3643be..a3ffdcb1d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/Configuration.java @@ -1020,7 +1020,7 @@ public final class Configuration { @ConfigurationCategory("script") public static ConfigurationItem warningAddFunction = null; - @ConfigurationDefaultBoolean(true) + @ConfigurationDefaultBoolean(false) @ConfigurationCategory("export") public static ConfigurationItem linkAllClasses = null; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java index f9ed06519..fb0ac8c73 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/AS3ScriptExporter.java @@ -455,7 +455,7 @@ public class AS3ScriptExporter { //If no sound/image classes found, then do not include FFDecIncludeClasses at all if (includeClassesBuilder.isEmpty()) { - exportSettings = exportSettings.clone(); + exportSettings = (ScriptExportSettings) exportSettings.clone(); exportSettings.includeAllClasses = false; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/settings/ScriptExportSettings.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/settings/ScriptExportSettings.java index 8500c3e2b..1de125670 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/settings/ScriptExportSettings.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/settings/ScriptExportSettings.java @@ -18,15 +18,13 @@ package com.jpexs.decompiler.flash.exporters.settings; import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode; import com.jpexs.decompiler.flash.helpers.FileTextWriter; -import java.util.logging.Level; -import java.util.logging.Logger; /** * Script export settings. * * @author JPEXS */ -public class ScriptExportSettings { +public class ScriptExportSettings implements Cloneable { /** * Export folder name @@ -136,14 +134,14 @@ public class ScriptExportSettings { throw new Error("Unsupported script export mode: " + mode); } } - + @Override public ScriptExportSettings clone() { try { return (ScriptExportSettings) super.clone(); - } catch (CloneNotSupportedException ex) { + } catch (CloneNotSupportedException ex) { //ignored } return null; - } + } }