This commit is contained in:
2026-09-28 20:07:00 +02:00
5 changed files with 88 additions and 3 deletions

View File

@@ -10,6 +10,11 @@ FString UPlatformInfotFunctionLibrary::GetGpuBrandName()
return FWindowsPlatformMisc::GetPrimaryGPUBrand();
#elif PLATFORM_MAC
return FMacPlatformMisc::GetPrimaryGPUBrand();
#else
// IOSPlatformMisc does not implement a GPU brand query, so fall back to the generic
// implementation (which reports a placeholder). Required so this non-void function
// always returns on IOS/Android/Linux.
return FGenericPlatformMisc::GetPrimaryGPUBrand();
#endif
}
@@ -19,6 +24,11 @@ FString UPlatformInfotFunctionLibrary::GetCpuBrandName()
return FWindowsPlatformMisc::GetCPUBrand();
#elif PLATFORM_MAC
return FMacPlatformMisc::GetCPUBrand();
#elif PLATFORM_IOS
// On IOS this reports the device/model identifier string (e.g. "iPhone16,1").
return FIOSPlatformMisc::GetCPUBrand();
#else
return FGenericPlatformMisc::GetCPUBrand();
#endif
}