updata Exitwaiter (#2813)

* 添加检测日志

参考自 8c8b1066bf/Plain%20Craft%20Launcher%202/Modules/Minecraft/ModWatcher.vb (L209-L228)

* updata
This commit is contained in:
zkitefly 2024-02-19 15:47:52 +08:00 committed by GitHub
parent f354f65adb
commit 14db21211f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -69,7 +69,10 @@ final class ExitWaiter implements Runnable {
"A fatal exception has occurred. Program will exit.")) {
EventBus.EVENT_BUS.fireEvent(new JVMLaunchFailedEvent(this, process));
exitType = ProcessListener.ExitType.JVM_ERROR;
} else if (exitCode != 0 || StringUtils.containsOne(errorLines, "Unable to launch")) {
} else if (exitCode != 0 || StringUtils.containsOne(errorLines,
"Someone is closing me!",
"Crash report saved to", "Could not save crash report to", "This crash report has been saved to:",
"Unable to launch", "An exception was thrown, the game will display an error screen and halt.")) {
EventBus.EVENT_BUS.fireEvent(new ProcessExitedAbnormallyEvent(this, process));
if (exitCode == 137 && OperatingSystem.CURRENT_OS.isLinuxOrBSD()) {