diff --git a/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java b/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java index bfb5c659..dbff48ae 100644 --- a/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java +++ b/JavaApp/src/main/java/net/kdt/pojavlaunch/PLaunchApp.java @@ -53,7 +53,7 @@ public class PLaunchApp { try { mcver = Tools.read(Tools.DIR_GAME_NEW + "/config_ver.txt"); } catch (IOException e) { - UIKit.updateProgressSafe(currProgress, "config_ver.txt not found, defaulting to Minecraft 1.16.5"); + UIKit.updateProgressSafe(0, "config_ver.txt not found, defaulting to Minecraft 1.16.5"); } UIKit.updateProgressSafe(0, "Selected Minecraft version: " + mcver); diff --git a/Natives/input_bridge_v3.c b/Natives/input_bridge_v3.c index ca5327ba..73db4e9e 100644 --- a/Natives/input_bridge_v3.c +++ b/Natives/input_bridge_v3.c @@ -159,7 +159,6 @@ void closeGLFWWindow() { } void callback_LauncherViewController_installMinecraft() { - // Because UI init after JVM init, this should not be null assert(runtimeJNIEnvPtr_JRE != NULL); @@ -168,9 +167,8 @@ void callback_LauncherViewController_installMinecraft() { assert(uikitBridgeClass != NULL); } - jmethodID method = (*runtimeJNIEnvPtr_JRE)->GetStaticMethodID(runtimeJNIEnvPtr_JRE, uikitBridgeClass, "callback_LauncherViewController_installMinecraft", "(II)V"); + jmethodID method = (*runtimeJNIEnvPtr_JRE)->GetStaticMethodID(runtimeJNIEnvPtr_JRE, uikitBridgeClass, "callback_LauncherViewController_installMinecraft", "()V"); assert(method != NULL); - (*runtimeJNIEnvPtr_JRE)->CallStaticVoidMethod( runtimeJNIEnvPtr_JRE, uikitBridgeClass, method