mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-06 08:38:30 +09:00
fix: null cpuid causing crash
This commit is contained in:
@@ -339,8 +339,8 @@ public class App implements ApplicationListener {
|
|||||||
sc = System.nanoTime();
|
sc = System.nanoTime();
|
||||||
}
|
}
|
||||||
bogoflops = Math.round((double)(bogoflops) * (1000000000.0 / (sc - st)));
|
bogoflops = Math.round((double)(bogoflops) * (1000000000.0 / (sc - st)));
|
||||||
System.out.println(sc - st);
|
// System.out.println(sc - st);
|
||||||
System.out.println(bogoflops);
|
// System.out.println(bogoflops);
|
||||||
|
|
||||||
// if -ea flag is set, turn on all the debug prints
|
// if -ea flag is set, turn on all the debug prints
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ class UISystemInfo(val remoCon: UIRemoCon) : UICanvas() {
|
|||||||
v.add("OS" to "${App.OSName} ${App.OSVersion}")
|
v.add("OS" to "${App.OSName} ${App.OSVersion}")
|
||||||
v.add("Processor" to App.processor)
|
v.add("Processor" to App.processor)
|
||||||
v.add("Architecture" to App.systemArch)
|
v.add("Architecture" to App.systemArch)
|
||||||
v.add("CPUID" to App.processorVendor.let { if (it == "null") "n/a" else it })
|
v.add("CPUID" to App.processorVendor.let { if (it == "null" || it == null) "n/a" else it })
|
||||||
v.add("OpenGL" to "${Gdx.graphics.glVersion.majorVersion}.${Gdx.graphics.glVersion.minorVersion}.${Gdx.graphics.glVersion.releaseVersion}")
|
v.add("OpenGL" to "${Gdx.graphics.glVersion.majorVersion}.${Gdx.graphics.glVersion.minorVersion}.${Gdx.graphics.glVersion.releaseVersion}")
|
||||||
v.add("GL Vendor" to Gdx.graphics.glVersion.vendorString)
|
v.add("GL Vendor" to Gdx.graphics.glVersion.vendorString)
|
||||||
v.add("GL Renderer" to Gdx.graphics.glVersion.rendererString)
|
v.add("GL Renderer" to Gdx.graphics.glVersion.rendererString)
|
||||||
|
|||||||
Reference in New Issue
Block a user