mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-14 05:55:13 +01:00
Remove magic number
This commit is contained in:
parent
fb16700fe5
commit
17ba67c8c9
@ -53,10 +53,11 @@ SMDH::GameRegion SMDH::GetRegion() const {
|
|||||||
return GameRegion::RegionFree;
|
return GameRegion::RegionFree;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (region_lockout == 0x00000050) {
|
constexpr u32 taiwan_and_china = (1 << GameRegion::Taiwan) & (1 << GameRegion::China);
|
||||||
|
if (region_lockout == taiwan_and_china) {
|
||||||
return GameRegion::Taiwan;
|
return GameRegion::Taiwan;
|
||||||
} // hack to fix TWN games that support CHN consoles
|
} // hack to fix TWN games that support CHN consoles
|
||||||
|
|
||||||
constexpr u32 REGION_COUNT = 7;
|
constexpr u32 REGION_COUNT = 7;
|
||||||
u32 region = 0;
|
u32 region = 0;
|
||||||
for (; region < REGION_COUNT; ++region) {
|
for (; region < REGION_COUNT; ++region) {
|
||||||
|
Loading…
Reference in New Issue
Block a user