mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-13 14:21:11 +01:00
Return exit code 0 when running --version or --help
Fixes https://github.com/godotengine/godot/issues/83661
This commit is contained in:
parent
f95754186a
commit
5b05e02fde
@ -36,8 +36,12 @@ int main(int argc, char *argv[]) {
|
|||||||
OS_Server os;
|
OS_Server os;
|
||||||
|
|
||||||
Error err = Main::setup(argv[0], argc - 1, &argv[1]);
|
Error err = Main::setup(argv[0], argc - 1, &argv[1]);
|
||||||
if (err != OK)
|
if (err != OK) {
|
||||||
|
if (err == ERR_HELP) { // Returned by --help and --version, so success.
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return 255;
|
return 255;
|
||||||
|
}
|
||||||
|
|
||||||
if (Main::start())
|
if (Main::start())
|
||||||
os.main_run(); // it is actually the OS that decides how to run
|
os.main_run(); // it is actually the OS that decides how to run
|
||||||
|
Loading…
Reference in New Issue
Block a user