mirror of
https://github.com/joel16/SwitchIdent.git
synced 2025-02-17 01:29:04 +00:00
adding more regions support for SwitchIdent_GetRegion(void) (#12)
Region codes fetched from https://switchbrew.org/wiki/Settings_services#RegionCode .
This commit is contained in:
parent
80c008aa9e
commit
26f850f334
@ -24,6 +24,9 @@ char *SwitchIdent_GetRegion(void) {
|
||||
"USA",
|
||||
"EUR",
|
||||
"AUS",
|
||||
"CHN",
|
||||
"KOR",
|
||||
"TWN",
|
||||
"Unknown"
|
||||
};
|
||||
|
||||
@ -31,7 +34,7 @@ char *SwitchIdent_GetRegion(void) {
|
||||
|
||||
if (R_FAILED(ret = setGetRegionCode(®ionCode))) {
|
||||
printf("setGetRegionCode() failed: 0x%x.\n\n", ret);
|
||||
return regions[4];
|
||||
return regions[7];
|
||||
}
|
||||
|
||||
return regions[regionCode];
|
||||
|
Loading…
x
Reference in New Issue
Block a user