Merge pull request #89887 from Alex2782/fix_exit_code_on_android

Fix `EXIT_SUCCESS` on Android
This commit is contained in:
Rémi Verschelde 2024-03-25 18:38:16 +01:00 committed by GitHub
commit 7c6e85de0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}