diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-08-03 16:59:18 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-08-03 17:45:50 +0200 |
commit | 09386ba9fd6abddb3b9be723ae3650c6d15bc440 (patch) | |
tree | 9214338056aca966e0e10ce26e7697674afc6c3a /core | |
parent | 80fc90e82a57e8111cb7577b05bb2de021000e75 (diff) |
[Headless] Add --headless switch (no rendering, no audio).
Also remove now unused "--no-window" option, and relative OS getter and
setter.
Diffstat (limited to 'core')
-rw-r--r-- | core/os/os.cpp | 8 | ||||
-rw-r--r-- | core/os/os.h | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index f7af74da3e..cdb570bb73 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -215,14 +215,6 @@ void OS::dump_resources_to_file(const char *p_file) { ResourceCache::dump(p_file); } -void OS::set_no_window_mode(bool p_enable) { - _no_window = p_enable; -} - -bool OS::is_no_window_mode_enabled() const { - return _no_window; -} - int OS::get_exit_code() const { return _exit_code; } diff --git a/core/os/os.h b/core/os/os.h index fcb195afe1..0466d94acd 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -53,7 +53,6 @@ class OS { bool _verbose_stdout = false; bool _debug_stdout = false; String _local_clipboard; - bool _no_window = false; int _exit_code = EXIT_FAILURE; // unexpected exit is marked as failure int _orientation; bool _allow_hidpi = false; @@ -269,9 +268,6 @@ public: virtual Error move_to_trash(const String &p_path) { return FAILED; } - virtual void set_no_window_mode(bool p_enable); - virtual bool is_no_window_mode_enabled() const; - virtual void debug_break(); virtual int get_exit_code() const; |