diff options
author | Luka Dornhecker <luka.dornhecker@gmail.com> | 2018-12-18 14:17:43 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-06-20 16:55:52 +0200 |
commit | ad504b926f9a0cfabde78254f6a4b40901cb8592 (patch) | |
tree | d1b76baffd09ff75cd4edf75457de8bb1e5f8df0 /core | |
parent | d6f8a43b600cc5236c5860c8f266b6f8afc9c23c (diff) |
Add option to toggle console window on Windows
This is an editor setting and its value can also be toggled
using an entry in the Editor toolbar. The console will still
appear briefly when starting the project manager or editor,
as it's still compiled as console application.
Does not impact exported games, which will still run without
console in release and with console in debug mode.
A project setting or export option could be added to disable
it in debug mode if there's demand for it, but that would
greatly reduce the usefulness of debug builds if Windows users
can no longer report error and crash messages.
Fixes #17889.
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/os/os.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h index 514e1e2ad3..1b19ddff26 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -222,6 +222,8 @@ public: virtual bool is_window_maximized() const { return true; } virtual void set_window_always_on_top(bool p_enabled) {} virtual bool is_window_always_on_top() const { return false; } + virtual void set_console_visible(bool p_enabled) {} + virtual bool is_console_visible() const { return false; } virtual void request_attention() {} virtual void center_window(); |