summaryrefslogtreecommitdiff
path: root/core/os/os.cpp
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2021-07-22 19:23:48 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2021-07-22 21:50:35 +0300
commit618eb27e8b1d3a00fd5a809a0a998d4e0f10e1b7 (patch)
tree97babcc5cddd671f5d0ecc44811e11210ce65974 /core/os/os.cpp
parent5de991d57c44d68221c68cf4996831a3b6a3e9e1 (diff)
Move `alert` function from `DisplayServer` to `OS`.
Diffstat (limited to 'core/os/os.cpp')
-rw-r--r--core/os/os.cpp4
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;
}