From 834f427cf5f35a2eb0a80c27cc207a6ad8a2bc69 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 26 Mar 2018 16:55:57 +0300 Subject: [PATCH] [macOS] Return exit code specified by `OS.exit_code` parameter. --- platform/osx/godot_main_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/osx/godot_main_osx.mm b/platform/osx/godot_main_osx.mm index 90501d01c46..18bbcc86f4a 100644 --- a/platform/osx/godot_main_osx.mm +++ b/platform/osx/godot_main_osx.mm @@ -84,5 +84,5 @@ int main(int argc, char **argv) { os.run(); // it is actually the OS that decides how to run Main::cleanup(); - return 0; + return os.get_exit_code(); };