1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix exit code of --help and --version, and test them in CI

Corrects prior regression which caused ERROR output and exit code of 1.

(cherry picked from commit d38d76d039)
This commit is contained in:
Jan Haller
2022-07-02 01:05:20 +02:00
committed by Rémi Verschelde
parent da78e92321
commit 861e155543
6 changed files with 19 additions and 4 deletions

View File

@@ -199,6 +199,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
}