mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Merge pull request #8470 from kevlahnota/master3
move hwinfo output on create method
This commit is contained in:
@@ -148,16 +148,6 @@ public class Forge implements ApplicationListener {
|
|||||||
scope.getContexts().setDevice(hwInfo.device());
|
scope.getContexts().setDevice(hwInfo.device());
|
||||||
scope.getContexts().setOperatingSystem(hwInfo.os());
|
scope.getContexts().setOperatingSystem(hwInfo.os());
|
||||||
});
|
});
|
||||||
//init hwInfo to log
|
|
||||||
System.out.println(
|
|
||||||
"---------------------------------------\n" +
|
|
||||||
"APP: Forge v." + GuiBase.getInterface().getCurrentVersion() + " (" + GuiBase.getInterface() + ")" +
|
|
||||||
"\nDEV: " + hwInfo.device().getName() +
|
|
||||||
"\nCPU: " + hwInfo.device().getCpuDescription() +
|
|
||||||
"\nRAM: " + totalRAM + " MB" +
|
|
||||||
"\nOS: " + hwInfo.os().getName() +
|
|
||||||
"\n---------------------------------------"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
GuiBase.setDeviceInfo(hwInfo, AndroidAPI, totalRAM);
|
GuiBase.setDeviceInfo(hwInfo, AndroidAPI, totalRAM);
|
||||||
}
|
}
|
||||||
@@ -179,6 +169,21 @@ public class Forge implements ApplicationListener {
|
|||||||
public void create() {
|
public void create() {
|
||||||
//install our error handler
|
//install our error handler
|
||||||
ExceptionHandler.registerErrorHandling();
|
ExceptionHandler.registerErrorHandling();
|
||||||
|
//init hwInfo to log
|
||||||
|
Gdx.app.postRunnable(() -> {
|
||||||
|
HWInfo info = GuiBase.getHWInfo();
|
||||||
|
if (info != null) {
|
||||||
|
System.out.println(
|
||||||
|
"---------------------------------------\n" +
|
||||||
|
"APP: Forge v." + GuiBase.getInterface().getCurrentVersion() + " (" + GuiBase.getInterface() + ")" +
|
||||||
|
"\nDEV: " + info.device().getName() +
|
||||||
|
"\nCPU: " + info.device().getCpuDescription() +
|
||||||
|
"\nRAM: " + GuiBase.getDeviceRAM() + " MB" +
|
||||||
|
"\nOS: " + info.os().getName() +
|
||||||
|
"\n---------------------------------------"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
// closeSplashScreen() is called early on non-Windows OS so it will not crash, LWJGL3 bug on AWT Splash.
|
// closeSplashScreen() is called early on non-Windows OS so it will not crash, LWJGL3 bug on AWT Splash.
|
||||||
if (OperatingSystem.isWindows())
|
if (OperatingSystem.isWindows())
|
||||||
getDeviceAdapter().closeSplashScreen();
|
getDeviceAdapter().closeSplashScreen();
|
||||||
|
|||||||
Reference in New Issue
Block a user