From b292022bc7ac424ed00dd606b5f18ee32b9b576a Mon Sep 17 00:00:00 2001 From: iwubcode Date: Mon, 16 Oct 2023 19:23:00 -0500 Subject: VideoCommon: use ToLower function in assets when parsing json, for proper locale independent behavior --- Source/Core/VideoCommon/Assets/ShaderAsset.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/Assets/ShaderAsset.cpp') diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp index f71ed65ff7..e58b9bfbb6 100644 --- a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp +++ b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp @@ -9,6 +9,7 @@ #include #include "Common/Logging/Log.h" +#include "Common/StringUtil.h" #include "VideoCommon/Assets/CustomAssetLibrary.h" namespace VideoCommon @@ -47,8 +48,7 @@ bool ParseShaderProperties(const VideoCommon::CustomAssetLibrary::AssetID& asset return false; } std::string type = type_iter->second.to_str(); - std::transform(type.begin(), type.end(), type.begin(), - [](unsigned char c) { return std::tolower(c); }); + Common::ToLower(&type); static constexpr std::array, static_cast(ShaderProperty::Type::Type_Max)> -- cgit v1.2.3