citra-emu
/
citra-canary
Archived
1
0
Fork 0

Remove magic number

This commit is contained in:
Jhynjhiruu 2019-07-21 10:37:29 +01:00 committed by GitHub
parent fb16700fe5
commit 17ba67c8c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,8 @@ SMDH::GameRegion SMDH::GetRegion() const {
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;
} // hack to fix TWN games that support CHN consoles