fixed a bug where the combination of RAM banks and PlusROM would break a game (this should fix #1058)

This commit is contained in:
thrust26 2024-12-30 12:41:01 +01:00
parent 907f687184
commit 86a5454f1a
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,10 @@
* Added developer option for disabling PlusROM support (TODO: Doc)
* Enhanced PAL-60 detection, searches for signature (e.g. PAL60) in ROM
* Enhanced VSYNC emulation, considers VBLANK now too
6.7.1 to 7.0 (October 5, 2024)
* Enhanced ROM launcher to allow multiple images per ROM.

View File

@ -176,7 +176,7 @@ uInt8 CartridgeEnhanced::peek(uInt16 address)
address &= ROM_MASK;
// Write port is e.g. at 0xF000 - 0xF07F (128 bytes)
if(address >= myWriteOffset && address < myWriteOffset + myRamSize)
if(!myRamBankCount && address >= myWriteOffset && address < myWriteOffset + myRamSize)
{
// This is a read access to a write port!
// Reading from the write port triggers an unwanted write