mirror of https://github.com/mgba-emu/mgba.git
GB MBC: Pocket Cam memory should be accessible without enabling
This commit is contained in:
parent
6c0d67cf5f
commit
010cb8f49d
1
CHANGES
1
CHANGES
|
@ -8,6 +8,7 @@ Bugfixes:
|
||||||
- Qt: Fix command line debugger closing second game
|
- Qt: Fix command line debugger closing second game
|
||||||
- GB Serialize: Fix audio state loading
|
- GB Serialize: Fix audio state loading
|
||||||
- GB Video: Fix dot clock timing being slightly wrong
|
- GB Video: Fix dot clock timing being slightly wrong
|
||||||
|
- GB MBC: Pocket Cam memory should be accessible without enabling
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Timer: Use global cycles for timers
|
- GBA Timer: Use global cycles for timers
|
||||||
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
- GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
|
||||||
|
|
|
@ -761,9 +761,6 @@ uint8_t _GBPocketCamRead(struct GBMemory* memory, uint16_t address) {
|
||||||
if (memory->mbcState.pocketCam.registersActive) {
|
if (memory->mbcState.pocketCam.registersActive) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!memory->sramAccess) {
|
|
||||||
return 0xFF;
|
|
||||||
}
|
|
||||||
return memory->sramBank[address & (GB_SIZE_EXTERNAL_RAM - 1)];
|
return memory->sramBank[address & (GB_SIZE_EXTERNAL_RAM - 1)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue