v0.8.2: The desktop build now have a specific popup for openGL errors
This commit is contained in:
@@ -76,12 +76,20 @@ public class DesktopLauncher {
|
|||||||
exceptionMsg = exceptionMsg.replace("com.badlogic.gdx.", "");
|
exceptionMsg = exceptionMsg.replace("com.badlogic.gdx.", "");
|
||||||
exceptionMsg = exceptionMsg.replace("\t", " ");
|
exceptionMsg = exceptionMsg.replace("\t", " ");
|
||||||
|
|
||||||
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
|
if (exceptionMsg.contains("Couldn't create window")){
|
||||||
title + " has run into an error it can't recover from and has crashed, sorry about that!\n\n" +
|
TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!",
|
||||||
"If you could, please email this error message to the developer (Evan@ShatteredPixel.com):\n\n" +
|
title + " wasn't able to initialize it's graphics display, sorry about that!\n\n" +
|
||||||
"version: " + Game.version + "\n" +
|
"This usually happens when a computer's graphics card does not support OpenGL 2.0+, or has misconfigured graphics drivers.\n\n" +
|
||||||
exceptionMsg,
|
"If you're certain the game should be working on your computer, feel free to message the developer (Evan@ShatteredPixel.com)\n\n" +
|
||||||
"ok", "error", false );
|
"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();
|
if (Gdx.app != null) Gdx.app.exit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user