2021-06-21 11:13:11 +00:00
|
|
|
package the.bytecode.club.bytecodeviewer;
|
|
|
|
|
2021-06-26 01:13:46 +00:00
|
|
|
import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme;
|
|
|
|
import the.bytecode.club.bytecodeviewer.gui.theme.RSTATheme;
|
2021-06-29 09:41:08 +00:00
|
|
|
import the.bytecode.club.bytecodeviewer.translation.Language;
|
2021-06-26 01:13:46 +00:00
|
|
|
|
2021-06-21 11:13:11 +00:00
|
|
|
import java.io.File;
|
|
|
|
|
|
|
|
/**
|
2021-06-26 01:13:46 +00:00
|
|
|
* A collection of variables that can be configured through the settings menu or some form of UI/plugin
|
|
|
|
*
|
2021-06-21 11:13:11 +00:00
|
|
|
* @author Konloch
|
|
|
|
* @since 6/21/2021
|
|
|
|
*/
|
|
|
|
public class Configuration
|
|
|
|
{
|
|
|
|
public static String python = "";
|
|
|
|
public static String python3 = "";
|
|
|
|
public static String rt = "";
|
|
|
|
public static String library = "";
|
|
|
|
public static String javac = "";
|
|
|
|
public static String java = "";
|
|
|
|
public static File krakatauTempDir;
|
|
|
|
public static File krakatauTempJar;
|
|
|
|
public static boolean displayParentInTab = false; //also change in the main GUI
|
2021-06-26 01:13:46 +00:00
|
|
|
public static boolean simplifiedTabNames = false;
|
2021-06-21 11:13:11 +00:00
|
|
|
public static boolean currentlyDumping = false;
|
|
|
|
public static boolean needsReDump = true;
|
|
|
|
public static boolean warnForEditing = false;
|
|
|
|
public static boolean runningObfuscation = false;
|
|
|
|
public static final long start = System.currentTimeMillis();
|
|
|
|
public static String lastDirectory = ".";
|
|
|
|
public static boolean pingback = false;
|
|
|
|
public static boolean deleteForeignLibraries = true;
|
|
|
|
public static boolean canExit = false;
|
2021-06-29 18:24:47 +00:00
|
|
|
public static int silenceExceptionGUI = 0;
|
|
|
|
public static int pauseExceptionGUI = 0;
|
2021-06-21 11:13:11 +00:00
|
|
|
|
2021-06-21 11:32:07 +00:00
|
|
|
public static boolean verifyCorruptedStateOnBoot = false; //eventually may be a setting
|
|
|
|
|
2021-07-07 05:57:35 +00:00
|
|
|
public static long lastHotKeyExecuted = 0;
|
2021-06-26 01:13:46 +00:00
|
|
|
|
2021-06-29 09:41:08 +00:00
|
|
|
public static Language language = Language.ENGLISH;
|
|
|
|
|
2021-06-29 00:05:18 +00:00
|
|
|
public static LAFTheme lafTheme = LAFTheme.SYSTEM; //lightmode by default since it uses the system theme
|
2021-06-26 01:13:46 +00:00
|
|
|
public static RSTATheme rstaTheme = lafTheme.getRSTATheme();
|
2021-07-01 21:54:10 +00:00
|
|
|
|
|
|
|
public static File getLastDirectory()
|
|
|
|
{
|
|
|
|
File lastDir = new File(lastDirectory);
|
|
|
|
if(lastDir.exists())
|
|
|
|
return lastDir;
|
|
|
|
|
|
|
|
return new File(".");
|
|
|
|
}
|
2021-06-26 01:13:46 +00:00
|
|
|
}
|