From 09386ba9fd6abddb3b9be723ae3650c6d15bc440 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Tue, 3 Aug 2021 16:59:18 +0200 Subject: [Headless] Add --headless switch (no rendering, no audio). Also remove now unused "--no-window" option, and relative OS getter and setter. --- core/os/os.cpp | 8 -------- core/os/os.h | 4 ---- 2 files changed, 12 deletions(-) (limited to 'core') 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; -- cgit v1.2.3