Cleanup: remove legacy code and data migration

This commit is contained in:
khanhduytran0 committed 2024-07-15 10:02:59 +07:00
1 parent 4cf5906be0
commit 958a668f7f
5 files changed
+15 -76

No files matched your search

@@ -37,9 +37,8 @@ public class PojavLauncher {
Thread.currentThread().setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread t, Throwable th) {
Tools.showError(th);
// Block this thread from exiting
while (true) {}
th.printStackTrace();
System.exit(1);
}
});
@@ -225,24 +225,7 @@ public final class Tools {
return libStr.toString();
}
public static void showError(Throwable e) {
showError(e, false);
}
public static void showError(final Throwable e, final boolean exitIfOk) {
showError("Error", e, exitIfOk, false);
}
public static void showError(final String title, final Throwable e, final boolean exitIfOk) {
showError(title, e, exitIfOk, false);
}
private static void showError(final String title, final Throwable e, final boolean exitIfOk, final boolean showMore) {
e.printStackTrace();
System.exit(1);
}
public static void moveInside(String from, String to) {
File fromFile = new File(from);
for (File fromInside : fromFile.listFiles()) {