From 208d536d5b02a3d6389943bf963e6c4fde429896 Mon Sep 17 00:00:00 2001 From: lax1dude Date: Sat, 9 Nov 2024 16:25:14 -0800 Subject: [PATCH] Fix linux issue on desktop runtime --- .../eaglercraft/v1_8/internal/PlatformRuntime.java | 3 +-- .../eaglercraftDebugRuntime.launch | 4 ++++ .../desktopRuntime/{libEGL.so => libEGL.so.1} | Bin .../desktopRuntime/{libGLESv2.so.2 => libGLESv2.so} | Bin 4 files changed, 5 insertions(+), 2 deletions(-) rename sources/setup/workspace_template/desktopRuntime/{libEGL.so => libEGL.so.1} (100%) rename sources/setup/workspace_template/desktopRuntime/{libGLESv2.so.2 => libGLESv2.so} (100%) diff --git a/sources/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java b/sources/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java index b943f00..3a165f4 100644 --- a/sources/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java +++ b/sources/lwjgl/java/net/lax1dude/eaglercraft/v1_8/internal/PlatformRuntime.java @@ -336,8 +336,7 @@ public class PlatformRuntime { private static boolean probablyGLES2(String glVersion) { if(glVersion == null) return false; - glVersion = glVersion.toLowerCase(); - return glVersion.contains("opengl es 2.0") || glVersion.contains("ES 2.0"); + return glVersion.toLowerCase().contains("opengl es 2.0") || glVersion.contains("ES 2.0"); } public static EnumPlatformType getPlatformType() { diff --git a/sources/setup/eclipseProjectFiles/eaglercraftDebugRuntime.launch b/sources/setup/eclipseProjectFiles/eaglercraftDebugRuntime.launch index bc7fe74..9ca39ab 100644 --- a/sources/setup/eclipseProjectFiles/eaglercraftDebugRuntime.launch +++ b/sources/setup/eclipseProjectFiles/eaglercraftDebugRuntime.launch @@ -1,11 +1,15 @@ + + + + diff --git a/sources/setup/workspace_template/desktopRuntime/libEGL.so b/sources/setup/workspace_template/desktopRuntime/libEGL.so.1 similarity index 100% rename from sources/setup/workspace_template/desktopRuntime/libEGL.so rename to sources/setup/workspace_template/desktopRuntime/libEGL.so.1 diff --git a/sources/setup/workspace_template/desktopRuntime/libGLESv2.so.2 b/sources/setup/workspace_template/desktopRuntime/libGLESv2.so similarity index 100% rename from sources/setup/workspace_template/desktopRuntime/libGLESv2.so.2 rename to sources/setup/workspace_template/desktopRuntime/libGLESv2.so