Start of Decompilers Automatically Reformatting Syntax
This commit is contained in:
parent
5bac732ea9
commit
a625c398b2
|
@ -94,9 +94,6 @@ public class Constants
|
|||
//Nothing here is meant for user level production, only development level production.
|
||||
public static final boolean DEV_FLAG_DECOMPILERS_SIMULATED_ERRORS = DEV_MODE && false; //enable true / false to disable
|
||||
|
||||
//decompilers will automatically delete their temp files, useful to turn off if you want to quickly debug a decompilers results
|
||||
public static boolean DECOMPILERS_AUTOMATICALLY_CLEANUP = true;
|
||||
|
||||
public static final PrintStream ERR = System.err;
|
||||
public static final PrintStream OUT = System.out;
|
||||
|
||||
|
|
|
@ -43,6 +43,10 @@ public class Settings
|
|||
private static List<String> recentPlugins;
|
||||
private static List<String> recentFiles;
|
||||
|
||||
//decompilers will automatically delete their temp files, useful to turn off if you want to quickly debug a decompilers results
|
||||
public static boolean DECOMPILERS_AUTOMATICALLY_CLEANUP = true;
|
||||
public static boolean DECOMPILERS_UNIFORM_SYNTAX_FORMATTING = false; //TODO
|
||||
|
||||
static
|
||||
{
|
||||
try
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package the.bytecode.club.bytecodeviewer.util;
|
||||
|
||||
import the.bytecode.club.bytecodeviewer.Constants;
|
||||
import the.bytecode.club.bytecodeviewer.Settings;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashSet;
|
||||
|
@ -63,7 +64,7 @@ public class TempFile
|
|||
|
||||
public void cleanup()
|
||||
{
|
||||
if(!Constants.DECOMPILERS_AUTOMATICALLY_CLEANUP)
|
||||
if(!Settings.DECOMPILERS_AUTOMATICALLY_CLEANUP)
|
||||
return;
|
||||
|
||||
//delete all the items
|
||||
|
|
Loading…
Reference in New Issue
Block a user