diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-25 21:16:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 21:16:34 +0100 |
commit | 6ef0538f182c13e1691eb0e03211c949e11beed4 (patch) | |
tree | 496c301bfe51083be230f75d110ff4e6de07c2f6 /core/os/os.h | |
parent | 494e1cb1487c90425e3f5ae2cdf9e4046c3f550c (diff) | |
parent | 60d2c1fd47a0c24a127ea00f09724537f5527dbb (diff) | |
download | redot-engine-6ef0538f182c13e1691eb0e03211c949e11beed4.tar.gz |
Merge pull request #38929 from touilleMan/exit-status-on-godot-error
Fix Godot returned status code on unexpected error
Diffstat (limited to 'core/os/os.h')
-rw-r--r-- | core/os/os.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h index 77a54ba68a..e41d788e12 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -40,6 +40,7 @@ #include "core/templates/vector.h" #include <stdarg.h> +#include <stdlib.h> class OS { static OS *singleton; @@ -53,7 +54,7 @@ class OS { bool _debug_stdout = false; String _local_clipboard; bool _no_window = false; - int _exit_code = 0; + int _exit_code = EXIT_FAILURE; // unexpected exit is marked as failure int _orientation; bool _allow_hidpi = false; bool _allow_layered = false; |