diff options
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/os_windows.cpp | 7 | ||||
-rw-r--r-- | platform/windows/os_windows.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 9871ecba8b..64219d6c17 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1647,6 +1647,13 @@ void OS_Windows::move_window_to_foreground() { } +Error OS_Windows::shell_open(String p_uri) { + + ShellExecuteW(NULL, L"open", p_uri.c_str(), NULL, NULL, SW_SHOWNORMAL); + return OK; +} + + String OS_Windows::get_locale() const { const _WinLocale *wl = &_win_locales[0]; diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h index 6d75ca8d7b..365808d175 100644 --- a/platform/windows/os_windows.h +++ b/platform/windows/os_windows.h @@ -246,6 +246,8 @@ public: virtual void make_rendering_thread(); virtual void swap_buffers(); + virtual Error shell_open(String p_uri); + void run(); virtual bool get_swap_ok_cancel() { return true; } |