diff --git a/src/citra_qt/game_list_p.h b/src/citra_qt/game_list_p.h index 5891a44877..9a3fef6126 100644 --- a/src/citra_qt/game_list_p.h +++ b/src/citra_qt/game_list_p.h @@ -4,6 +4,7 @@ #pragma once +#include #include #include #include @@ -95,6 +96,14 @@ static QString GetRegionFromSMDH(const Loader::SMDH& smdh) { return QObject::tr("Region free"); } + const bool all_regions = + std::all_of(regions_map.begin(), regions_map.end(), [®ions](const auto& it) { + return std::find(regions.begin(), regions.end(), it.first) != regions.end(); + }); + if (all_regions) { + return QObject::tr("All regions"); + } + QString result = QObject::tr(regions_map.at(regions.front())); for (auto region = ++regions.begin(); region != regions.end(); ++region) { result += QStringLiteral("\n") + QObject::tr(regions_map.at(*region));