Compare commits

..

3 Commits

Author SHA1 Message Date
thepikachugamer d2e95f3a0d
Merge 0cf8c31447 into 608d954afe 2024-04-18 11:56:46 -04:00
thepikachugamer 608d954afe
Merge pull request #10 from MikeIsAStar/handle-all-known-product-areas
Handle all known product areas
2024-03-22 22:31:15 -05:00
MikeIsAStar 13dd003f3d Handle all known product areas 2024-03-16 17:41:48 -04:00
1 changed files with 6 additions and 5 deletions

View File

@ -185,16 +185,17 @@ static bool GetRegionFromTXT(char* region)
{
start++;
if (!strncmp(start, "JPN", 3))
if (!strncmp(start, "JPN", 3) || !strncmp(start, "TWN", 3) || !strncmp(start, "ROC", 3))
*region = 'J';
else if (!strncmp(start, "TWN", 3))
*region = 'J';
else if (!strncmp(start, "USA", 3))
else if (!strncmp(start, "USA", 3) || !strncmp(start, "BRA", 3) || !strncmp(start, "HKG", 3) ||
!strncmp(start, "ASI", 3) || !strncmp(start, "LTN", 3) || !strncmp(start, "SAF", 3))
*region = 'U';
else if (!strncmp(start, "EUR", 3))
else if (!strncmp(start, "EUR", 3) || !strncmp(start, "AUS", 3))
*region = 'E';
else if (!strncmp(start, "KOR", 3))
*region = 'K';
else if (!strncmp(start, "CHN", 3))
printf("Error! GetRegionFromTXT: Unhandled product area \"CHN\"!\n");
if (*region != 0)
{