File tree Expand file tree Collapse file tree
src/main/java/the/bytecode/club/bytecodeviewer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,9 +94,6 @@ public class Constants
9494 //Nothing here is meant for user level production, only development level production.
9595 public static final boolean DEV_FLAG_DECOMPILERS_SIMULATED_ERRORS = DEV_MODE && false ; //enable true / false to disable
9696
97- //decompilers will automatically delete their temp files, useful to turn off if you want to quickly debug a decompilers results
98- public static boolean DECOMPILERS_AUTOMATICALLY_CLEANUP = true ;
99-
10097 public static final PrintStream ERR = System .err ;
10198 public static final PrintStream OUT = System .out ;
10299
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ public class Settings
4343 private static List <String > recentPlugins ;
4444 private static List <String > recentFiles ;
4545
46+ //decompilers will automatically delete their temp files, useful to turn off if you want to quickly debug a decompilers results
47+ public static boolean DECOMPILERS_AUTOMATICALLY_CLEANUP = true ;
48+ public static boolean DECOMPILERS_UNIFORM_SYNTAX_FORMATTING = false ; //TODO
49+
4650 static
4751 {
4852 try
Original file line number Diff line number Diff line change 11package the .bytecode .club .bytecodeviewer .util ;
22
33import the .bytecode .club .bytecodeviewer .Constants ;
4+ import the .bytecode .club .bytecodeviewer .Settings ;
45
56import java .io .File ;
67import java .util .HashSet ;
@@ -63,7 +64,7 @@ public void markAsCreatedFile(File file)
6364
6465 public void cleanup ()
6566 {
66- if (!Constants .DECOMPILERS_AUTOMATICALLY_CLEANUP )
67+ if (!Settings .DECOMPILERS_AUTOMATICALLY_CLEANUP )
6768 return ;
6869
6970 //delete all the items
You can’t perform that action at this time.
0 commit comments