Add banners on the top of settings pages, if editing game-specific settings show the icon.

This commit is contained in:
Henrik Rydgård
2025-11-06 17:59:06 +01:00
parent b6850eb26e
commit 6d1973edfb
38 changed files with 294 additions and 122 deletions
+1 -1
View File
@@ -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
View File
@@ -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);
}
}