Merge pull request #7 from mkwong98/temp

Fix Twin Dragons support
This commit is contained in:
mkwong98 2021-03-16 00:06:47 +08:00 committed by GitHub
commit 13da3bbeaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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();
}
}
@ -127,4 +127,4 @@ protected:
_flash->Write((addr & 0x3FFF) | (_prgBank << 14), value);
}
}
};
};