diff --git a/resources/ffdec.exe b/resources/ffdec.exe index af55aeaa2..b7f76d514 100644 Binary files a/resources/ffdec.exe and b/resources/ffdec.exe differ diff --git a/resources/soleditor.bat b/resources/soleditor.bat new file mode 100644 index 000000000..4f6eea5b2 --- /dev/null +++ b/resources/soleditor.bat @@ -0,0 +1,2 @@ +@echo off +start javaw -jar "%~dp0\ffdec.jar" -soleditor diff --git a/resources/soleditor.lnk b/resources/soleditor.lnk new file mode 100644 index 000000000..a39da74ab Binary files /dev/null and b/resources/soleditor.lnk differ diff --git a/resources/soleditor.sh b/resources/soleditor.sh new file mode 100644 index 000000000..56fa0e8db --- /dev/null +++ b/resources/soleditor.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +export FFDEC_JARFILENAME=ffdec.jar +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +exec $SCRIPT_DIR/ffdec.sh -soleditor diff --git a/resources/translator.lnk b/resources/translator.lnk new file mode 100644 index 000000000..f8b074a5f Binary files /dev/null and b/resources/translator.lnk differ diff --git a/resources/translator.sh b/resources/translator.sh index bb749ae5c..e707d8476 100644 --- a/resources/translator.sh +++ b/resources/translator.sh @@ -2,4 +2,4 @@ export FFDEC_JARFILENAME=ffdec.jar SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -exec $SCRIPT_DIR/ffdec.sh translator +exec $SCRIPT_DIR/ffdec.sh -translator diff --git a/src/com/jpexs/decompiler/flash/console/help.txt b/src/com/jpexs/decompiler/flash/console/help.txt index 7783f8926..8b1368f9b 100644 --- a/src/com/jpexs/decompiler/flash/console/help.txt +++ b/src/com/jpexs/decompiler/flash/console/help.txt @@ -295,6 +295,12 @@ alias /? List all available configuration keys and current values. These keys can be used in -config pre-option. +-translator + Runs the Translator app for FFDec localization + +-soleditor + Runs the Sol cookie editor as standalone application + Pre-options: -format Applies to: -export diff --git a/src/com/jpexs/decompiler/flash/gui/Main.java b/src/com/jpexs/decompiler/flash/gui/Main.java index 7ae55a01e..74b553f73 100644 --- a/src/com/jpexs/decompiler/flash/gui/Main.java +++ b/src/com/jpexs/decompiler/flash/gui/Main.java @@ -145,7 +145,9 @@ import javax.swing.JOptionPane; import javax.swing.SwingWorker; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; +import javax.swing.WindowConstants; import javax.swing.filechooser.FileFilter; +import jsyntaxpane.DefaultSyntaxKit; import org.pushingpixels.substance.api.SubstanceLookAndFeel; /** @@ -3054,6 +3056,15 @@ public class Main { reloadLastSession(); } }); + } else if (args.length == 1 && "-soleditor".equals(args[0])) { + initGui(); + checkLibraryVersion(); + View.execInEventDispatch(() -> { + DefaultSyntaxKit.initKit(); + SolEditorFrame solEditor = new SolEditorFrame(); + solEditor.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); + solEditor.setVisible(true); + }); } else { checkLibraryVersion(); setSessionLoaded(true);