From 8c617f8b400b191e5eb58d583896a7b76e431294 Mon Sep 17 00:00:00 2001 From: Jordon Brooks Date: Sat, 11 May 2024 22:45:58 +0100 Subject: [PATCH] Force cpu_model_lower to actually check if its actually lower --- HarmonyLinkLib/src/Platform/IPlatformUtilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HarmonyLinkLib/src/Platform/IPlatformUtilities.cpp b/HarmonyLinkLib/src/Platform/IPlatformUtilities.cpp index ecfb670..0884ca1 100644 --- a/HarmonyLinkLib/src/Platform/IPlatformUtilities.cpp +++ b/HarmonyLinkLib/src/Platform/IPlatformUtilities.cpp @@ -199,7 +199,7 @@ namespace HarmonyLinkLib if (const std::shared_ptr cpu_info = get_cpu_info()) { const FString cpu_model_lower = FString::to_lower(cpu_info->Model_Name); 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"); return true; }