PojavCore is now inside the main executable

This took so long since there was a failed attempt in unloading and
reloading JVM to support Forge 1.17.x. Next attempt would be rewrite
everything to Objective-C and move the JVM entry point to the start of
the game.
This commit is contained in:
Duy Tran Khanh committed 2021-10-01 11:14:05 +07:00
1 parent 7fb5b55d8b
commit 4f59e0ffff
18 files changed
+45 -76

No files matched your search

@@ -35,7 +35,7 @@ public class CallbackBridge {
// TODO send grab state event to Android
static {
System.load(System.getenv("BUNDLE_PATH") + "/Frameworks/PojavCore.framework/PojavCore");
System.load(System.getenv("BUNDLE_PATH") + "/PojavLauncher");
INPUT_DEBUG_ENABLED = Boolean.parseBoolean(System.getProperty("glfwstub.debugInput", "false"));
}
@@ -501,7 +501,7 @@ public class GLFW
public static long mainContext = 0;
static {
try {
System.load(System.getenv("BUNDLE_PATH") + "/Frameworks/PojavCore.framework/PojavCore");
System.load(System.getenv("BUNDLE_PATH") + "/PojavLauncher");
} catch (UnsatisfiedLinkError e) {
e.printStackTrace();
}