disable cpu model check on xbox as it doesn't work and can even crash the app for some users

This commit is contained in:
Tunip3 2021-09-02 18:21:16 +01:00
parent bb0fe6c2d1
commit 9228a6f8ab
2 changed files with 36 additions and 31 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap mp rescap">
<Identity Name="1e4cf179-f3c2-404f-b9f3-cb2070a5aad8" Publisher="CN=libretro" Version="1.9.0.0" />
<mp:PhoneIdentity PhoneProductId="1e4cf179-f3c2-404f-b9f3-cb2070a5aad8" PhonePublisherId="00000000-0000-0000-0000-000000000000" />

View File

@ -831,6 +831,8 @@ extern "C" {
}
const char* uwp_get_cpu_model_name(void)
{
if (!is_running_on_xbox())
{
Platform::String^ cpu_id = nullptr;
Platform::String^ cpu_name = nullptr;
@ -872,4 +874,7 @@ extern "C" {
wcstombs(win32_cpu_model_name, cpu_name->Data(), sizeof(win32_cpu_model_name));
return win32_cpu_model_name;
}
else
return "Unknown";
}
}