From fb9b101e2ffbca5a8fea09483435703620cf89f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Mon, 19 Sep 2022 12:39:46 +0200 Subject: [PATCH] uwp: add missing openURL implementation --- WickedEngine/wiHelper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WickedEngine/wiHelper.cpp b/WickedEngine/wiHelper.cpp index 6545cc0b2..e8e48e0d1 100644 --- a/WickedEngine/wiHelper.cpp +++ b/WickedEngine/wiHelper.cpp @@ -29,6 +29,7 @@ extern basist::etc1_global_selector_codebook g_basis_global_codebook; #include #include #include +#include #else #include // openfile #include @@ -1199,6 +1200,10 @@ namespace wi::helper void OpenUrl(const std::string& url) { +#ifdef PLATFORM_UWP + winrt::Windows::System::Launcher::LaunchUriAsync(winrt::Windows::Foundation::Uri(winrt::to_hstring(url))); +#endif // PLATFORM_UWP + #ifdef PLATFORM_WINDOWS_DESKTOP std::string op = "start " + url; int status = system(op.c_str());