v0.8.2: The desktop build now have a specific popup for openGL errors

This commit is contained in:
Evan Debenham 2020-07-09 13:39:15 -04:00
parent 4eb8840c37
commit a2b4e3a9b6

View File

@ -76,12 +76,20 @@ public class DesktopLauncher {
exceptionMsg = exceptionMsg.replace("com.badlogic.gdx.", "");
exceptionMsg = exceptionMsg.replace("\t", " ");
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
title + " has run into an error it can't recover from and has crashed, sorry about that!\n\n" +
"If you could, please email this error message to the developer (Evan@ShatteredPixel.com):\n\n" +
"version: " + Game.version + "\n" +
exceptionMsg,
"ok", "error", false );
if (exceptionMsg.contains("Couldn't create window")){
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
title + " wasn't able to initialize it's graphics display, sorry about that!\n\n" +
"This usually happens when a computer's graphics card does not support OpenGL 2.0+, or has misconfigured graphics drivers.\n\n" +
"If you're certain the game should be working on your computer, feel free to message the developer (Evan@ShatteredPixel.com)\n\n" +
"version: " + Game.version, "ok", "error", false);
} else {
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
title + " has run into an error it can't recover from and has crashed, sorry about that!\n\n" +
"If you could, please email this error message to the developer (Evan@ShatteredPixel.com):\n\n" +
"version: " + Game.version + "\n" +
exceptionMsg,
"ok", "error", false);
}
if (Gdx.app != null) Gdx.app.exit();
}
});