mirror of
https://github.com/NovaSquirrel/Mesen-X.git
synced 2024-05-16 03:00:54 -04:00
Mapper 52: Add submapper 13 support (CHR ROM+RAM)
This commit is contained in:
parent
2a75312346
commit
eb00784e9f
|
@ -10,6 +10,7 @@ private:
|
|||
protected:
|
||||
virtual uint16_t RegisterStartAddress() override { return 0x6000; }
|
||||
virtual uint16_t RegisterEndAddress() override { return 0xFFFF; }
|
||||
virtual uint16_t GetChrRamPageSize() override { return (_romInfo.SubMapperID == 13) ? 0x400 : 0; }
|
||||
|
||||
virtual void StreamState(bool saving) override
|
||||
{
|
||||
|
@ -32,7 +33,9 @@ protected:
|
|||
page &= 0xFF;
|
||||
page |= (((_extraReg & 0x20) >> 3) | ((_extraReg & 0x10) >> 4)) << 7;
|
||||
}
|
||||
|
||||
if((_romInfo.SubMapperID == 13) && ((_extraReg & 3) == 3)) {
|
||||
memoryType = ChrMemoryType::ChrRam;
|
||||
}
|
||||
MMC3::SelectCHRPage(slot, page, memoryType);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue