Force cpu_model_lower to actually check if its actually lower

This commit is contained in:
Jordon Brooks 2024-05-11 22:45:58 +01:00
parent eacab99578
commit 8c617f8b40
Signed by: jordon
GPG key ID: DBD9758CD53E786A

View file

@ -199,7 +199,7 @@ namespace HarmonyLinkLib
if (const std::shared_ptr<FCPUInfo> cpu_info = get_cpu_info()) { if (const std::shared_ptr<FCPUInfo> cpu_info = get_cpu_info()) {
const FString cpu_model_lower = FString::to_lower(cpu_info->Model_Name); const FString cpu_model_lower = FString::to_lower(cpu_info->Model_Name);
for (const auto& model : steam_deck_models) { for (const auto& model : steam_deck_models) {
if (cpu_model_lower == model) { if (cpu_model_lower == FString::to_lower(model.c_str())) {
wprintf(L"Steam Deck detected by CPU model name.\n"); wprintf(L"Steam Deck detected by CPU model name.\n");
return true; return true;
} }