summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/FileSystemGCWii.cpp
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2022-01-16 16:38:11 -0800
committerPokechu22 <Pokechu022@gmail.com>2022-01-16 17:00:12 -0800
commit6e5f4125e32f545a61e611720fd30c051b691d62 (patch)
tree0bee9be23807fa77f4a65526f55180f889b93d46 /Source/Core/DiscIO/FileSystemGCWii.cpp
parentaaec64501abae397235865f0d8ddafb036e10811 (diff)
Use Common::ToLower and Common::ToUpper
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
-rw-r--r--Source/Core/DiscIO/FileSystemGCWii.cpp8
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;
}