more fixes towards MBC7

This commit is contained in:
squall-leonhart 2008-06-26 13:49:19 +00:00
parent 785706fcbb
commit f850d60151
1 changed files with 2 additions and 0 deletions

View File

@ -3313,12 +3313,14 @@ bool gbReadBatteryFile(const char *file)
case 0x13: case 0x13:
case 0xfc: case 0xfc:
res = gbReadSaveMBC3(file); res = gbReadSaveMBC3(file);
break;
case 0x1b: case 0x1b:
case 0x1e: case 0x1e:
res = gbReadSaveMBC5(file); res = gbReadSaveMBC5(file);
break; break;
case 0x22: case 0x22:
res = gbReadSaveMBC7(file); res = gbReadSaveMBC7(file);
break;
case 0xfd: case 0xfd:
if(!gbReadSaveTAMA5(file)) { if(!gbReadSaveTAMA5(file)) {
u8 gbDaysinMonth [12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; u8 gbDaysinMonth [12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};