Skip to content

Commit

Permalink
fix Supercross 2000
Browse files Browse the repository at this point in the history
Use interpreted instructions(LW)
  • Loading branch information
xjsxjs197 committed Oct 16, 2022
1 parent b27514c commit 27c4bd1
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 8 deletions.
22 changes: 18 additions & 4 deletions Gamecube/menu/FileBrowserFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,8 @@ static void CheckGameAutoFix(void)

static void CheckGameR3000AutoFix(void)
{
int autoFixLen = 8;
char autoFixGames[autoFixLen][10] = {
int autoFixR3000Len = 8;
char autoFixR3000JR[autoFixR3000Len][10] = {
"SLES00037" // Alone in the Dark - Jack is Back
,"SLPS00141"
,"SLUS00239"
Expand All @@ -551,10 +551,24 @@ static void CheckGameR3000AutoFix(void)

Config.pR3000Fix = 0;
int i;
for (i = 0; i < autoFixLen; i++)
for (i = 0; i < autoFixR3000Len; i++)
{
if (ChkString(CdromId, autoFixGames[i], strlen(autoFixGames[i]))) {
if (ChkString(CdromId, autoFixR3000JR[i], strlen(autoFixR3000JR[i]))) {
Config.pR3000Fix = 1;
break;
}
}

autoFixR3000Len = 2;
char autoFixR3000LW[autoFixR3000Len][10] = {
"SLUS01005" // Supercross 2000
,"SLES02373"
};
for (i = 0; i < autoFixR3000Len; i++)
{
if (ChkString(CdromId, autoFixR3000LW[i], strlen(autoFixR3000LW[i]))) {
Config.pR3000Fix = 2;
break;
}
}
}
Expand Down

0 comments on commit 27c4bd1

Please sign in to comment.