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 /platform/windows/os_windows.cpp | |
parent | 9b034c930467606a7696d93020838c4f0c5f01e2 (diff) | |
parent | 618eb27e8b1d3a00fd5a809a0a998d4e0f10e1b7 (diff) |
Merge pull request #50747 from bruvzg/move_alert_to_os
Move `alert` function from `DisplayServer` to `OS`.
Diffstat (limited to 'platform/windows/os_windows.cpp')
-rw-r--r-- | platform/windows/os_windows.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 56d673afc3..a06362b9b0 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -165,6 +165,10 @@ BOOL WINAPI HandlerRoutine(_In_ DWORD dwCtrlType) { } } +void OS_Windows::alert(const String &p_alert, const String &p_title) { + MessageBoxW(nullptr, (LPCWSTR)(p_alert.utf16().get_data()), (LPCWSTR)(p_title.utf16().get_data()), MB_OK | MB_ICONEXCLAMATION | MB_TASKMODAL); +} + void OS_Windows::initialize_debugging() { SetConsoleCtrlHandler(HandlerRoutine, TRUE); } |