fix(crash): crash when game crashed.

This commit is contained in:
huanghongxun 2021-10-07 18:50:11 +08:00
parent 6d09d0984e
commit 775b58d0fd

View File

@ -90,6 +90,7 @@ public class GameCrashWindow extends Stage {
this.version = version; this.version = version;
this.launchOptions = launchOptions; this.launchOptions = launchOptions;
this.logs = logs; this.logs = logs;
this.analyzer = LibraryAnalyzer.analyze(version);
this.view = new View(); this.view = new View();
setScene(new Scene(view, 800, 480)); setScene(new Scene(view, 800, 480));
@ -100,7 +101,6 @@ public class GameCrashWindow extends Stage {
memory = Optional.ofNullable(launchOptions.getMaxMemory()).map(i -> i + " MB").orElse("-"); memory = Optional.ofNullable(launchOptions.getMaxMemory()).map(i -> i + " MB").orElse("-");
java = launchOptions.getJava().getVersion(); java = launchOptions.getJava().getVersion();
analyzer = LibraryAnalyzer.analyze(version);
analyzeCrashReport(); analyzeCrashReport();
} }