summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-15 11:35:18 +0200
committerGitHub <noreply@github.com>2021-09-15 11:35:18 +0200
commit17a7ac08adf6d7279063d52b80fff12bacdca9f9 (patch)
tree91f5f732edf0a4f2404796f12ffa2239dfadf2f4 /core
parentf2c44949c07e5ec2aadf519fca98e5bb1517f74c (diff)
parent2b292a1a2ad7c0a74ea186d9f53afa70b65d390f (diff)
Merge pull request #42099 from jak6jak/test-fix
Single window mode is not lost after starting a project from the project manager
Diffstat (limited to 'core')
-rw-r--r--core/os/os.cpp4
-rw-r--r--core/os/os.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index 89ba73b35e..dc3fe29dca 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -146,6 +146,10 @@ bool OS::is_stdout_verbose() const {
return _verbose_stdout;
}
+bool OS::is_single_window() const {
+ return _single_window;
+}
+
bool OS::is_stdout_debug_enabled() const {
return _debug_stdout;
}
diff --git a/core/os/os.h b/core/os/os.h
index 55b21266fc..f585483300 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -52,6 +52,7 @@ class OS {
int low_processor_usage_mode_sleep_usec = 10000;
bool _verbose_stdout = false;
bool _debug_stdout = false;
+ bool _single_window = false;
String _local_clipboard;
int _exit_code = EXIT_FAILURE; // unexpected exit is marked as failure
int _orientation;
@@ -224,6 +225,8 @@ public:
void set_stdout_enabled(bool p_enabled);
void set_stderr_enabled(bool p_enabled);
+ bool is_single_window() const;
+
virtual void disable_crash_handler() {}
virtual bool is_disable_crash_handler() const { return false; }
virtual void initialize_debugging() {}