diff --git a/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLauncher.java b/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLauncher.java index 37ccf0b50..362107561 100644 --- a/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLauncher.java +++ b/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLauncher.java @@ -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(); } });