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:
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);
|
||||
}
|
||||
Reference in new issue
Block a user