Fix Twin Dragons support

This commit is contained in:
Jean-André Santoni 2021-03-11 14:38:25 +07:00 committed by mkwong98
parent 86326e8329
commit 91185e1a43

View file

@ -48,9 +48,9 @@ protected:
SetPpuMemoryMapping(0x2000, 0x3FFF, ChrMemoryType::ChrRam, 0x6000, MemoryAccessType::ReadWrite);
}
_orgPrgRom = vector<uint8_t>(_prgRom, _prgRom + _prgSize);
if(HasBattery()) {
AddRegisterRange(0x8000, 0xFFFF, MemoryOperation::Read);
_orgPrgRom = vector<uint8_t>(_prgRom, _prgRom + _prgSize);
ApplySaveData();
}
}