mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 07:56:21 +00:00
LinkAllClasses is optional and defaults to off.
Fixed tests.
This commit is contained in:
@@ -1020,7 +1020,7 @@ public final class Configuration {
|
||||
@ConfigurationCategory("script")
|
||||
public static ConfigurationItem<Boolean> warningAddFunction = null;
|
||||
|
||||
@ConfigurationDefaultBoolean(true)
|
||||
@ConfigurationDefaultBoolean(false)
|
||||
@ConfigurationCategory("export")
|
||||
public static ConfigurationItem<Boolean> linkAllClasses = null;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user