diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-07-23 19:27:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 19:27:31 +0200 |
commit | eefc67a810975cb99343554c981968ea5ae2fd3e (patch) | |
tree | f475726e88352b299573211c1564d9cda293c153 /core/os/os.cpp | |
parent | 9b034c930467606a7696d93020838c4f0c5f01e2 (diff) | |
parent | 618eb27e8b1d3a00fd5a809a0a998d4e0f10e1b7 (diff) | |
download | redot-engine-eefc67a810975cb99343554c981968ea5ae2fd3e.tar.gz |
Merge pull request #50747 from bruvzg/move_alert_to_os
Move `alert` function from `DisplayServer` to `OS`.
Diffstat (limited to 'core/os/os.cpp')
-rw-r--r-- | core/os/os.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp index 535eee4797..f7af74da3e 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -110,6 +110,10 @@ void OS::printerr(const char *p_format, ...) { va_end(argp); } +void OS::alert(const String &p_alert, const String &p_title) { + fprintf(stderr, "%s: %s\n", p_title.utf8().get_data(), p_alert.utf8().get_data()); +} + void OS::set_low_processor_usage_mode(bool p_enabled) { low_processor_usage_mode = p_enabled; } |