|
@@ -40,6 +40,7 @@
|
|
#include "core/templates/vector.h"
|
|
#include "core/templates/vector.h"
|
|
|
|
|
|
#include <stdarg.h>
|
|
#include <stdarg.h>
|
|
|
|
+#include <stdlib.h>
|
|
|
|
|
|
class OS {
|
|
class OS {
|
|
static OS *singleton;
|
|
static OS *singleton;
|
|
@@ -53,7 +54,8 @@ class OS {
|
|
bool _debug_stdout = false;
|
|
bool _debug_stdout = false;
|
|
String _local_clipboard;
|
|
String _local_clipboard;
|
|
bool _no_window = false;
|
|
bool _no_window = false;
|
|
- int _exit_code = 0;
|
|
|
|
|
|
+ int _exit_code = EXIT_FAILURE; // unexpected exit is marked as failure
|
|
|
|
+ bool _is_custom_exit_code = false;
|
|
int _orientation;
|
|
int _orientation;
|
|
bool _allow_hidpi = false;
|
|
bool _allow_hidpi = false;
|
|
bool _allow_layered = false;
|
|
bool _allow_layered = false;
|
|
@@ -268,6 +270,7 @@ public:
|
|
|
|
|
|
virtual int get_exit_code() const;
|
|
virtual int get_exit_code() const;
|
|
virtual void set_exit_code(int p_code);
|
|
virtual void set_exit_code(int p_code);
|
|
|
|
+ virtual bool is_custom_exit_code();
|
|
|
|
|
|
virtual int get_processor_count() const;
|
|
virtual int get_processor_count() const;
|
|
|
|
|