mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-21 22:47:06 +00:00
Sol cookie editor can be run standalone.
This commit is contained in:
Binary file not shown.
2
resources/soleditor.bat
Normal file
2
resources/soleditor.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
start javaw -jar "%~dp0\ffdec.jar" -soleditor
|
||||
BIN
resources/soleditor.lnk
Normal file
BIN
resources/soleditor.lnk
Normal file
Binary file not shown.
5
resources/soleditor.sh
Normal file
5
resources/soleditor.sh
Normal file
@@ -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
|
||||
BIN
resources/translator.lnk
Normal file
BIN
resources/translator.lnk
Normal file
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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 <formats>
|
||||
Applies to: -export
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user