diff options
| author | Léo Lam <leo@leolam.fr> | 2022-01-17 11:43:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 11:43:50 +0100 |
| commit | b7e55e2d52e181b2943a337c8ddc7e6021819935 (patch) | |
| tree | c55774af52802324951f27b5b1eea616303fb95a /Source/Core/DiscIO/FileSystemGCWii.cpp | |
| parent | e62771856092cd9bbc25c8c94c433ed0e55a9f3f (diff) | |
| parent | 43e146a1d5c327d49fdacddb7a5a7e7f0307fab8 (diff) | |
Merge pull request #10368 from Pokechu22/gamelist-lowercase-extension
GameList: Convert file extensions to lowercase
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileSystemGCWii.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index ed4c11d9a8..4090a9882d 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -146,13 +146,9 @@ bool FileInfoGCWii::NameCaseInsensitiveEquals(std::string_view other) const // other is in UTF-8 and this is in Shift-JIS, so we convert so that we can compare correctly const std::string this_utf8 = SHIFTJISToUTF8(this_ptr); return std::equal(this_utf8.cbegin(), this_utf8.cend(), other.cbegin() + i, other.cend(), - [](char a, char b) { - return std::tolower(a, std::locale::classic()) == - std::tolower(b, std::locale::classic()); - }); + [](char a, char b) { return Common::ToLower(a) == Common::ToLower(b); }); } - else if (std::tolower(*this_ptr, std::locale::classic()) != - std::tolower(*other_ptr, std::locale::classic())) + else if (Common::ToLower(*this_ptr) != Common::ToLower(*other_ptr)) { return false; } |
