From 22af2db6f37aba20268598c87002f64e5cb448f9 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 40e83aaa0..30d59fedf 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ Bugfixes: - Python: Fix importing .gb or .gba before .core - GBA: Reset active region as needed when loading a ROM - Qt: Fix command line debugger closing second game + - GB MBC: Pocket Cam memory should be accessible without enabling Misc: - Qt: Don't rebuild library view if style hasn't changed diff --git a/src/gb/mbc.c b/src/gb/mbc.c index 559e3b2f9..0d763cd29 100644 --- a/src/gb/mbc.c +++ b/src/gb/mbc.c @@ -744,9 +744,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)]; }