summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/RiivolutionPatcher.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-01-17 11:43:50 +0100
committerGitHub <noreply@github.com>2022-01-17 11:43:50 +0100
commitb7e55e2d52e181b2943a337c8ddc7e6021819935 (patch)
treec55774af52802324951f27b5b1eea616303fb95a /Source/Core/DiscIO/RiivolutionPatcher.cpp
parente62771856092cd9bbc25c8c94c433ed0e55a9f3f (diff)
parent43e146a1d5c327d49fdacddb7a5a7e7f0307fab8 (diff)
Merge pull request #10368 from Pokechu22/gamelist-lowercase-extension
GameList: Convert file extensions to lowercase
Diffstat (limited to 'Source/Core/DiscIO/RiivolutionPatcher.cpp')
-rw-r--r--Source/Core/DiscIO/RiivolutionPatcher.cpp6
1 files changed, 2 insertions, 4 deletions
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 <algorithm>
-#include <cctype>
#include <locale>
#include <string>
#include <string_view>
@@ -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<FSTBuilderNode>* fst,