Action53: Fixed 6502 CPU crash when loading game with runahead enabled (save state issue)

This commit is contained in:
Sour 2020-01-23 21:08:46 -05:00
parent b3a0ad84f6
commit f62fc1f13f

View file

@ -16,6 +16,7 @@ protected:
void InitMapper() override
{
_selectedReg = 0;
_mirroringBit = 0;
memset(_regs, 0, sizeof(_regs));
AddRegisterRange(0x5000, 0x5FFF, MemoryOperation::Write);
@ -29,10 +30,6 @@ protected:
ArrayInfo<uint8_t> regs{ _regs,4 };
Stream(_selectedReg, _mirroringBit, regs);
if(!saving) {
UpdateState();
}
}
void UpdateState()