From 3430bb6a694783353d32dc0332b2c8e861b38b9a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 30 Sep 2022 15:40:53 -0400 Subject: [PATCH] v1.4.0: increased the max length for desktop error popups --- .../shatteredpixeldungeon/desktop/DesktopLauncher.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 7bb426dbb..d4d20997a 100644 --- a/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLauncher.java +++ b/desktop/src/main/java/com/shatteredpixel/shatteredpixeldungeon/desktop/DesktopLauncher.java @@ -89,11 +89,11 @@ public class DesktopLauncher { exceptionMsg = exceptionMsg.replace("\t", " "); exceptionMsg = exceptionMsg.replace("'", ""); - if (exceptionMsg.length() > 500){ - exceptionMsg = exceptionMsg.substring(0, 500) + "..."; + if (exceptionMsg.length() > 1000){ + exceptionMsg = exceptionMsg.substring(0, 1000) + "..."; } - if (exceptionMsg.contains("Couldnt create window")){ + if (exceptionMsg.contains("Could not create window")){ TinyFileDialogs.tinyfd_messageBox(title + " Has Crashed!", title + " was not able to initialize its graphics display, sorry about that!\n\n" + "This usually happens when your graphics card does not support OpenGL 2.0+, or has misconfigured graphics drivers.\n\n" +