From 010cb8f49db2e35f7aa5011103a93b0b1818b45a Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 25 Jul 2017 17:29:07 -0700 Subject: [PATCH] GB MBC: Pocket Cam memory should be accessible without enabling --- CHANGES | 1 + src/gb/mbc.c | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 1114e5ae7..449d43967 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ Bugfixes: - Qt: Fix command line debugger closing second game - GB Serialize: Fix audio state loading - GB Video: Fix dot clock timing being slightly wrong + - GB MBC: Pocket Cam memory should be accessible without enabling Misc: - GBA Timer: Use global cycles for timers - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722) diff --git a/src/gb/mbc.c b/src/gb/mbc.c index 496289a06..6c262e1d3 100644 --- a/src/gb/mbc.c +++ b/src/gb/mbc.c @@ -761,9 +761,6 @@ uint8_t _GBPocketCamRead(struct GBMemory* memory, uint16_t address) { if (memory->mbcState.pocketCam.registersActive) { return 0; } - if (!memory->sramAccess) { - return 0xFF; - } return memory->sramBank[address & (GB_SIZE_EXTERNAL_RAM - 1)]; }