Skip to content

Commit 41f6e9b

Browse files
committed
fix(lwjgl): Specify org.lwjgl.librarypath
For some reason b1.7.3 doesn't work with only adding to `java.library.path`. They appear to override it or something as the LWJGL debug logs say it only looks through the android native library dir and no other.
1 parent 5d74e15 commit 41f6e9b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • app_pojavlauncher/src/main/java/net/kdt/pojavlaunch

app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/Tools.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,10 @@ public static void launchMinecraft(final AppCompatActivity activity, MinecraftAc
475475
javaArgList.addAll(Arrays.asList(getMinecraftJVMArgs(versionId, gamedir)));
476476
javaArgList.add("-cp"); javaArgList.add(launchClasspath);
477477

478+
// Some modloaders (babric) don't fully respect java.libary.path and only use the native lib dir
479+
// This arg makes them use it. LWJGL prioritizes this path during native loading as well.
480+
javaArgList.add("-Dorg.lwjgl.librarypath="+lwjglNativesDir);
481+
478482
// Forge 1.6.4 crash mitigation
479483
// https://github.com/MinecraftForge/FML/blob/f1b3381e61fac1a0ae90f521223c6bc613eb4888/common/cpw/mods/fml/common/asm/FMLSanityChecker.java#L192-L208
480484
// It for some reason fails certification and crashes because it thinks Minecraft is corrupted.

0 commit comments

Comments
 (0)