summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-02 10:25:03 +0200
committerGitHub <noreply@github.com>2022-07-02 10:25:03 +0200
commitec1348a72a510f68dfd2698bc368b29e2c72cbae (patch)
tree268019c51b5832ff48d135e761fc6af10f027bc7 /platform/android
parent04bdd7eb9354c10abaa47e095dd45e89dc02cd0e (diff)
parentd38d76d039a20bfcbc0a8612fee1c9a37cc21c78 (diff)
Merge pull request #62618 from Bromeon/bugfix/exit-code
Fix exit code of --help and --version, and test them in CI
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java_godot_lib_jni.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/java_godot_lib_jni.cpp b/platform/android/java_godot_lib_jni.cpp
index eaffe14b13..6e716c34a6 100644
--- a/platform/android/java_godot_lib_jni.cpp
+++ b/platform/android/java_godot_lib_jni.cpp
@@ -157,6 +157,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_setup(JNIEnv *env, jc
memfree(cmdline);
}
+ // Note: --help and --version return ERR_HELP, but this should be translated to 0 if exit codes are propagated.
if (err != OK) {
return; // should exit instead and print the error
}