mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Add banners on the top of settings pages, if editing game-specific settings show the icon.
This commit is contained in:
@@ -604,7 +604,7 @@ bool System_MakeRequest(SystemRequestType type, int requestId, const std::string
|
||||
}
|
||||
}
|
||||
|
||||
void System_LaunchUrl(LaunchUrlType urlType, const char *url) {
|
||||
void System_LaunchUrl(LaunchUrlType urlType, std::string_view url) {
|
||||
auto uri = ref new Windows::Foundation::Uri(ToPlatformString(url));
|
||||
|
||||
create_task(Windows::System::Launcher::LaunchUriAsync(uri)).then([](bool b) {});
|
||||
|
||||
+2
-2
@@ -2,11 +2,11 @@
|
||||
|
||||
#include "Common/Data/Encoding/Utf8.h"
|
||||
|
||||
inline Platform::String ^ToPlatformString(std::string str) {
|
||||
inline Platform::String ^ToPlatformString(std::string_view str) {
|
||||
return ref new Platform::String(ConvertUTF8ToWString(str).c_str());
|
||||
}
|
||||
|
||||
inline std::string FromPlatformString(Platform::String ^str) {
|
||||
std::wstring wstr(str->Data());
|
||||
return ConvertWStringToUTF8(wstr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user