Allow custom libjnidispatch.so

place to app_runtime/jna/
This commit is contained in:
ShirosakiMio 2024-08-17 18:12:44 +08:00
parent 85761d77a2
commit 429e5a964d
2 changed files with 6 additions and 1 deletions

View File

@ -150,8 +150,9 @@ public class DefaultLauncher extends Launcher {
res.addDefault("-Duser.home=", options.getGameDir().getAbsolutePath());
res.addDefault("-Duser.language=", System.getProperty("user.language"));
res.addDefault("-Duser.timezone=", TimeZone.getDefault().getID());
res.addDefault("-Djna.boot.library.path=", context.getApplicationInfo().nativeLibraryDir);
res.addDefault("-Dorg.lwjgl.vulkan.libname=", "libvulkan.so");
File libJna = new File(FCLPath.RUNTIME_DIR, "jna");
res.addDefault("-Djna.boot.library.path=", libJna.exists() ? libJna.getAbsolutePath() : context.getApplicationInfo().nativeLibraryDir);
if (getInjectorArg() != null && options.isBeGesture()) {
res.addDefault("-Dfcl.injector=", getInjectorArg());

View File

@ -13,6 +13,7 @@ import com.oracle.dalvik.VMLauncher;
import com.tungsten.fclauncher.bridge.FCLBridge;
import com.tungsten.fclauncher.plugins.FFmpegPlugin;
import com.tungsten.fclauncher.utils.Architecture;
import com.tungsten.fclauncher.utils.FCLPath;
import java.io.BufferedReader;
import java.io.File;
@ -114,6 +115,9 @@ public class FCLauncher {
"/hw" +
split +
FCLPath.RUNTIME_DIR + "/jna" +
split +
nativeDir;
}