diff options
Diffstat (limited to 'Source/Core/UICommon/GameFile.cpp')
| -rw-r--r-- | Source/Core/UICommon/GameFile.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp index bc623a8410..818cf2b766 100644 --- a/Source/Core/UICommon/GameFile.cpp +++ b/Source/Core/UICommon/GameFile.cpp @@ -630,9 +630,10 @@ std::string GameFile::GetNetPlayName(const Core::TitleDatabase& title_database) std::string lower_name = name; 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) + auto is_numbered_disc = lower_name.contains(fmt::format("disc {}", disc_number)) || + lower_name.contains(fmt::format("disc{}", disc_number)); + + if (disc_number > 1 && !is_numbered_disc) { std::string disc_text = "Disc "; info.push_back(disc_text + std::to_string(disc_number)); |
