mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
VideoCommon: use ToLower function in assets when parsing json, for proper locale independent behavior
This commit is contained in:
parent
2ae9771a30
commit
b292022bc7
2 changed files with 6 additions and 8 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <utility>
|
||||
|
||||
#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<std::pair<std::string_view, ShaderProperty::Type>,
|
||||
static_cast<int>(ShaderProperty::Type::Type_Max)>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue