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.
|
//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
|
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 ERR = System.err;
|
||||||
public static final PrintStream OUT = System.out;
|
public static final PrintStream OUT = System.out;
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,10 @@ public class Settings
|
||||||
private static List<String> recentPlugins;
|
private static List<String> recentPlugins;
|
||||||
private static List<String> recentFiles;
|
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
|
static
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package the.bytecode.club.bytecodeviewer.util;
|
package the.bytecode.club.bytecodeviewer.util;
|
||||||
|
|
||||||
import the.bytecode.club.bytecodeviewer.Constants;
|
import the.bytecode.club.bytecodeviewer.Constants;
|
||||||
|
import the.bytecode.club.bytecodeviewer.Settings;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
@ -63,7 +64,7 @@ public class TempFile
|
||||||
|
|
||||||
public void cleanup()
|
public void cleanup()
|
||||||
{
|
{
|
||||||
if(!Constants.DECOMPILERS_AUTOMATICALLY_CLEANUP)
|
if(!Settings.DECOMPILERS_AUTOMATICALLY_CLEANUP)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//delete all the items
|
//delete all the items
|
||||||
|
|
Loading…
Reference in New Issue
Block a user