Remove old region free logic
This commit is contained in:
parent
4144f4480d
commit
531bf857f5
@ -92,16 +92,12 @@ static QString GetRegionFromSMDH(const Loader::SMDH& smdh) {
|
|||||||
return QObject::tr("Invalid region");
|
return QObject::tr("Invalid region");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (std::find(regions.begin(), regions.end(), GameRegion::RegionFree) != regions.end()) {
|
const bool region_free =
|
||||||
return QObject::tr("Region free");
|
|
||||||
}
|
|
||||||
|
|
||||||
const bool all_regions =
|
|
||||||
std::all_of(regions_map.begin(), regions_map.end(), [®ions](const auto& it) {
|
std::all_of(regions_map.begin(), regions_map.end(), [®ions](const auto& it) {
|
||||||
return std::find(regions.begin(), regions.end(), it.first) != regions.end();
|
return std::find(regions.begin(), regions.end(), it.first) != regions.end();
|
||||||
});
|
});
|
||||||
if (all_regions) {
|
if (region_free) {
|
||||||
return QObject::tr("All regions");
|
return QObject::tr("Region free");
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString separator =
|
const QString separator =
|
||||||
|
@ -49,10 +49,6 @@ std::array<u16, 0x40> SMDH::GetShortTitle(Loader::SMDH::TitleLanguage language)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<SMDH::GameRegion> SMDH::GetRegions() const {
|
std::vector<SMDH::GameRegion> SMDH::GetRegions() const {
|
||||||
if (region_lockout == 0x7fffffff) {
|
|
||||||
return std::vector<GameRegion>{GameRegion::RegionFree};
|
|
||||||
}
|
|
||||||
|
|
||||||
constexpr u32 REGION_COUNT = 7;
|
constexpr u32 REGION_COUNT = 7;
|
||||||
std::vector<GameRegion> result;
|
std::vector<GameRegion> result;
|
||||||
for (u32 region = 0; region < REGION_COUNT; ++region) {
|
for (u32 region = 0; region < REGION_COUNT; ++region) {
|
||||||
|
@ -70,7 +70,6 @@ struct SMDH {
|
|||||||
China = 4,
|
China = 4,
|
||||||
Korea = 5,
|
Korea = 5,
|
||||||
Taiwan = 6,
|
Taiwan = 6,
|
||||||
RegionFree = 7,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user