Merge pull request #67421 from Sauermann/fix-failure-exit-code

Fix Godot exiting with unexpected failure code
This commit is contained in:
Clay John 2022-10-27 11:58:50 -07:00 committed by GitHub
commit 9ffa86357d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,7 @@ int main(int argc, char *argv[]) {
} }
if (Main::start()) { if (Main::start()) {
os.set_exit_code(EXIT_SUCCESS);
os.run(); // it is actually the OS that decides how to run os.run(); // it is actually the OS that decides how to run
} }
Main::cleanup(); Main::cleanup();