Skip to content

Commit

Permalink
Merge pull request #89887 from Alex2782/fix_exit_code_on_android
Browse files Browse the repository at this point in the history
Fix `EXIT_SUCCESS` on Android
  • Loading branch information
akien-mga authored Mar 25, 2024
2 parents ccb1cb4 + 1a68f14 commit 7c6e85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/android/java_godot_lib_jni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 7c6e85d

Please sign in to comment.