GB MBC: Fix MBC7 when size is incorrectly specified

This commit is contained in:
Jeffrey Pfau 2016-09-19 23:54:50 -07:00
parent 153447d1ec
commit b4e0ab93fe
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,6 @@
0.5.1: (Future) 0.5.1: (Future)
Bugfixes:
- GB MBC: Fix MBC7 when size is incorrectly specified
Misc: Misc:
- All: Only update version info if needed - All: Only update version info if needed

View File

@ -139,6 +139,7 @@ void GBMBCInit(struct GB* gb) {
break; break;
case GB_MBC7: case GB_MBC7:
gb->memory.mbc = _GBMBC7; gb->memory.mbc = _GBMBC7;
gb->sramSize = GB_SIZE_EXTERNAL_RAM;
break; break;
case GB_MMM01: case GB_MMM01:
mLOG(GB_MBC, WARN, "unimplemented MBC: MMM01"); mLOG(GB_MBC, WARN, "unimplemented MBC: MMM01");