mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-27 11:00:50 +00:00
Mapper 52: Fixed work ram writes
This commit is contained in:
parent
3638474c99
commit
193235b11f
@ -50,9 +50,13 @@ protected:
|
||||
void WriteRegister(uint16_t addr, uint8_t value) override
|
||||
{
|
||||
if(addr < 0x8000) {
|
||||
if(CanWriteToWorkRam() && (_extraReg & 0x80) == 0) {
|
||||
_extraReg = value;
|
||||
UpdateState();
|
||||
if(CanWriteToWorkRam()) {
|
||||
if((_extraReg & 0x80) == 0) {
|
||||
_extraReg = value;
|
||||
UpdateState();
|
||||
} else {
|
||||
BaseMapper::WritePrgRam(addr, value);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
MMC3::WriteRegister(addr, value);
|
||||
|
Loading…
Reference in New Issue
Block a user