From 6e5f4125e32f545a61e611720fd30c051b691d62 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 16 Jan 2022 16:38:11 -0800 Subject: Use Common::ToLower and Common::ToUpper --- Source/Core/DiscIO/RiivolutionPatcher.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Source/Core/DiscIO/RiivolutionPatcher.cpp') diff --git a/Source/Core/DiscIO/RiivolutionPatcher.cpp b/Source/Core/DiscIO/RiivolutionPatcher.cpp index 384e07680f..e3d3d88af9 100644 --- a/Source/Core/DiscIO/RiivolutionPatcher.cpp +++ b/Source/Core/DiscIO/RiivolutionPatcher.cpp @@ -4,7 +4,6 @@ #include "DiscIO/RiivolutionPatcher.h" #include -#include #include #include #include @@ -324,9 +323,8 @@ static bool CaseInsensitiveEquals(std::string_view a, std::string_view b) { if (a.size() != b.size()) return false; - return std::equal(a.begin(), a.end(), b.begin(), [](char ca, char cb) { - return std::tolower(ca, std::locale::classic()) == std::tolower(cb, std::locale::classic()); - }); + return std::equal(a.begin(), a.end(), b.begin(), + [](char ca, char cb) { return Common::ToLower(ca) == Common::ToLower(cb); }); } static FSTBuilderNode* FindFileNodeInFST(std::string_view path, std::vector* fst, -- cgit v1.2.3