Skip to content

Commit a625c39

Browse files
committed
Start of Decompilers Automatically Reformatting Syntax
1 parent 5bac732 commit a625c39

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/main/java/the/bytecode/club/bytecodeviewer/Constants.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

src/main/java/the/bytecode/club/bytecodeviewer/Settings.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/main/java/the/bytecode/club/bytecodeviewer/util/TempFile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package the.bytecode.club.bytecodeviewer.util;
22

33
import the.bytecode.club.bytecodeviewer.Constants;
4+
import the.bytecode.club.bytecodeviewer.Settings;
45

56
import java.io.File;
67
import 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

0 commit comments

Comments
 (0)