v1.3.0: updated libGDX to 1.11.0
This commit is contained in:
@@ -122,10 +122,10 @@ dependencies {
|
||||
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"
|
||||
|
||||
//we use LWJGL tinyFD directly to display crash messages and (for now) single-line text input
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.2.3"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.2.3:natives-windows"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.2.3:natives-macos"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.2.3:natives-linux"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1:natives-windows"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1:natives-macos"
|
||||
implementation "org.lwjgl:lwjgl-tinyfd:3.3.1:natives-linux"
|
||||
|
||||
implementation project(':services:updates:githubUpdates')
|
||||
implementation project(':services:news:shatteredNews')
|
||||
|
||||
@@ -89,13 +89,13 @@ public class DesktopLauncher {
|
||||
|
||||
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" +
|
||||
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" +
|
||||
"If you are 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" +
|
||||
title + " has run into an error it cannot 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,
|
||||
|
||||
@@ -77,33 +77,6 @@ public class DesktopPlatformSupport extends PlatformSupport {
|
||||
return true; //no easy way to check this in desktop, just assume user doesn't care
|
||||
}
|
||||
|
||||
//TODO backported openURI fix from libGDX-1.10.1-SNAPSHOT, remove when updating libGDX
|
||||
public boolean openURI( String uri ){
|
||||
if (SharedLibraryLoader.isMac) {
|
||||
try {
|
||||
(new ProcessBuilder("open", (new URI(uri).toString()))).start();
|
||||
return true;
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
}
|
||||
} else if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
|
||||
try {
|
||||
Desktop.getDesktop().browse(new URI(uri));
|
||||
return true;
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
}
|
||||
} else if (SharedLibraryLoader.isLinux) {
|
||||
try {
|
||||
(new ProcessBuilder("xdg-open", (new URI(uri).toString()))).start();
|
||||
return true;
|
||||
} catch (Throwable t) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* FONT SUPPORT */
|
||||
|
||||
//custom pixel font, for use with Latin and Cyrillic languages
|
||||
|
||||
Reference in New Issue
Block a user