Fix[init]: unexpectedly preload LWJGL

Migrating token storage to keychain accidentally causes LWJGL to be
preloaded, making Fabric fails to init.
Add JNI library PojavAccountJNI to do the task of sending access token
from keychain to JVM space.
This commit is contained in:
khanhduytran0 committed 2024-04-09 13:37:55 +07:00
1 parent 41a0c8df2e
commit f7163ceb31
4 files changed
+23 -15

No files matched your search

@@ -44,7 +44,7 @@ public class MinecraftAccount
}
static {
System.load(System.getenv("BUNDLE_PATH") + "/PojavLauncher");
System.loadLibrary("PojavAccountJNI");
}
public static native String getAccessTokenFromKeychain(String xuid);
}