add hacks for certain games whose save size autodetection is always doomed to fail

This commit is contained in:
zeromus 2013-05-21 20:07:47 +00:00
parent bea761c04e
commit 3835544919
1 changed files with 6 additions and 3 deletions

View File

@ -469,10 +469,13 @@ void BackupDevice::reset_command()
break; break;
case 3: case 3:
//another modern typical case.. //another modern typical case..
//but unfortunately we select this case for spider-man 3, when what it meant to do was //but unfortunately we select this case on accident sometimes when what it meant to do was present the archaic 1+2 case
//present the archaic 1+2 case //(the archaic 1+2 case is: specifying one address byte, and then reading the first two bytes, instead of the first one byte, as most other games would do.)
//it seems that over the hedge does this also. //so, we're gonna hack in checks for the games that are doing this
addr_size = 2; addr_size = 2;
if(!memcmp(gameInfo.header.gameCode,"AL3E",4)) addr_size = 1; //spongebob atlantis squarepantis.
if(!memcmp(gameInfo.header.gameCode,"AH5E",4)) addr_size = 1; //over the hedge
if(!memcmp(gameInfo.header.gameCode,"AQ3E",4)) addr_size = 1; //spider-man 3
break; break;
case 4: case 4:
//a modern typical case //a modern typical case