Skip to content

Commit ceae23f

Browse files
committed
[FIXME]regression: Execute .jar non-functional
#238 pushed the wrong commit..oops
1 parent f2542c0 commit ceae23f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package net.kdt.pojavlaunch;
22

3+
import static net.kdt.pojavlaunch.Architecture.archAsStringAndroid;
4+
import static net.kdt.pojavlaunch.Architecture.getDeviceArchitecture;
35
import static net.kdt.pojavlaunch.prefs.LauncherPreferences.DEFAULT_PREF;
46

57
import android.annotation.SuppressLint;
@@ -358,7 +360,7 @@ public void launchJavaRuntime(Runtime runtime, File modFile, List<String> javaAr
358360
try {
359361
List<String> javaArgList = new ArrayList<>();
360362
// FIXME: Freetype is shipped inside lwjgl. We should ship it outside and use lwjgl native jars instead.
361-
String javaLibraryPath = Tools.lwjglNativesDir + ":" +
363+
String javaLibraryPath = String.format("%s/lwjgl-3.3.3-natives/%s", Tools.DIR_DATA, archAsStringAndroid(getDeviceArchitecture())) + ":" +
362364
Tools.NATIVE_LIB_DIR;
363365
javaArgList.add("-Djava.library.path="+ javaLibraryPath);
364366

0 commit comments

Comments
 (0)