瀏覽代碼

Fix `EXIT_SUCCESS` on Android

Alexander Hartmann 1 年之前
父節點
當前提交
1a68f1425d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/android/java_godot_lib_jni.cpp

+ 1 - 1
platform/android/java_godot_lib_jni.cpp

@@ -250,7 +250,7 @@ JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_step(JNIEnv *env,
 	}
 
 	if (step.get() == 1) {
-		if (!Main::start()) {
+		if (Main::start() != EXIT_SUCCESS) {
 			return true; // should exit instead and print the error
 		}