Add CN Region similar to libogc

This commit is contained in:
TheShadowEevee 2022-04-20 19:18:52 -05:00
parent 24e649bc39
commit 84eb194bce
No known key found for this signature in database
GPG Key ID: 7A8AA92B3BAFAB75
2 changed files with 5 additions and 1 deletions

View File

@ -762,6 +762,7 @@ s32 SYSCONF_GetRegion(void)
if(!strcmp(buf, "US")) return SYSCONF_REGION_US;
if(!strcmp(buf, "EU")) return SYSCONF_REGION_EU;
if(!strcmp(buf, "KR")) return SYSCONF_REGION_KR;
if(!strcmp(buf, "CN")) return SYSCONF_REGION_CN;
return SYSCONF_EBADVALUE;
}
@ -966,6 +967,8 @@ s32 SYSCONF_SetRegion(s32 value)
return __SYSCONF_SetTxt("GAME", "EU");
case SYSCONF_REGION_KR:
return __SYSCONF_SetTxt("GAME", "KR");
case SYSCONF_REGION_CN:
return __SYSCONF_SetTxt("GAME", "CN");
default:
return SYSCONF_EBADVALUE;
}

View File

@ -72,7 +72,8 @@ enum {
SYSCONF_REGION_JP = 0,
SYSCONF_REGION_US,
SYSCONF_REGION_EU,
SYSCONF_REGION_KR
SYSCONF_REGION_KR,
SYSCONF_REGION_CN
};
enum {