diff options
author | George Marques <george@gmarqu.es> | 2020-03-07 12:38:06 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2021-04-06 07:36:41 -0300 |
commit | f8dd7917ec81435a7e451994ccaf648debcfdaac (patch) | |
tree | f7228ee804d6fe18978c17f89df0413b1e122020 /core/os/os.h | |
parent | f4b82814f89d992bc0119245590737ae361a0358 (diff) | |
download | redot-engine-f8dd7917ec81435a7e451994ccaf648debcfdaac.tar.gz |
Add flag to stop printing to stdout/stderr
This allows the terminal output to be suppressed but still be captured
by print/error handlers.
Diffstat (limited to 'core/os/os.h')
-rw-r--r-- | core/os/os.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h index e41d788e12..7198607237 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -60,6 +60,8 @@ class OS { bool _allow_layered = false; bool _use_vsync; bool _vsync_via_compositor; + bool _stdout_enabled = true; + bool _stderr_enabled = true; char *last_error; @@ -219,6 +221,11 @@ public: bool is_stdout_verbose() const; bool is_stdout_debug_enabled() const; + bool is_stdout_enabled() const; + bool is_stderr_enabled() const; + void set_stdout_enabled(bool p_enabled); + void set_stderr_enabled(bool p_enabled); + virtual void disable_crash_handler() {} virtual bool is_disable_crash_handler() const { return false; } virtual void initialize_debugging() {} |