summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/UICommon/GameFile.cpp')
-rw-r--r--Source/Core/UICommon/GameFile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp
index b9c5db1379..d87fb9d168 100644
--- a/Source/Core/UICommon/GameFile.cpp
+++ b/Source/Core/UICommon/GameFile.cpp
@@ -387,6 +387,7 @@ std::string GameFile::GetExtension() const
{
std::string extension;
SplitPath(m_file_path, nullptr, nullptr, &extension);
+ Common::ToLower(&extension);
return extension;
}
@@ -610,7 +611,7 @@ std::string GameFile::GetNetPlayName(const Core::TitleDatabase& title_database)
int disc_number = GetDiscNumber() + 1;
std::string lower_name = name;
- std::transform(lower_name.begin(), lower_name.end(), lower_name.begin(), ::tolower);
+ Common::ToLower(&lower_name);
if (disc_number > 1 &&
lower_name.find(fmt::format("disc {}", disc_number)) == std::string::npos &&
lower_name.find(fmt::format("disc{}", disc_number)) == std::string::npos)
@@ -786,7 +787,7 @@ std::string GameFile::GetFileFormatName() const
case DiscIO::Platform::ELFOrDOL:
{
std::string extension = GetExtension();
- std::transform(extension.begin(), extension.end(), extension.begin(), ::toupper);
+ Common::ToUpper(&extension);
// substr removes the dot
return extension.substr(std::min<size_t>(1, extension.size()));