Start of Decompilers Automatically Reformatting Syntax

This commit is contained in:
Konloch 2024-10-02 18:45:40 -06:00
parent 5bac732ea9
commit a625c398b2

AI 샘플 코드 생성 중입니다

Loading...
3 changed files with 6 additions and 4 deletions

View File

@ -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;

View File

@ -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

View File

@ -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