From b4e0ab93feba9ee8763db8f41810cfe61e735c23 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 19 Sep 2016 23:54:50 -0700 Subject: [PATCH] GB MBC: Fix MBC7 when size is incorrectly specified --- CHANGES | 2 ++ src/gb/mbc.c | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 5038990fa..47863f4fe 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,6 @@ 0.5.1: (Future) +Bugfixes: + - GB MBC: Fix MBC7 when size is incorrectly specified Misc: - All: Only update version info if needed diff --git a/src/gb/mbc.c b/src/gb/mbc.c index 695653eda..b4bb79a2a 100644 --- a/src/gb/mbc.c +++ b/src/gb/mbc.c @@ -139,6 +139,7 @@ void GBMBCInit(struct GB* gb) { break; case GB_MBC7: gb->memory.mbc = _GBMBC7; + gb->sramSize = GB_SIZE_EXTERNAL_RAM; break; case GB_MMM01: mLOG(GB_MBC, WARN, "unimplemented MBC: MMM01");