mirror of
https://github.com/NovaSquirrel/Mesen-X.git
synced 2024-06-01 02:48:18 -04:00
Add submapper 1 support to Coolboy (mapper 268)
Fixes Wisdom Tree Collection from Piko (and presumably others).
This commit is contained in:
parent
dc37ac490a
commit
4ddd3371ba
|
@ -9,7 +9,7 @@ private:
|
|||
uint8_t _exRegs[4];
|
||||
|
||||
protected:
|
||||
uint16_t RegisterStartAddress() override { return 0x6000; }
|
||||
uint16_t RegisterStartAddress() override { return _romInfo.SubMapperID == 1 ? 0x5000 : 0x6000; }
|
||||
uint32_t GetChrRamSize() override { return 0x40000; }
|
||||
|
||||
void Reset(bool softReset) override
|
||||
|
@ -95,7 +95,7 @@ protected:
|
|||
WritePrgRam(addr, value);
|
||||
}
|
||||
|
||||
if((_exRegs[3] & 0x90) != 0x80) {
|
||||
if(((_romInfo.SubMapperID != 1) || (addr < 0x6000)) && (_exRegs[3] & 0x90) != 0x80) {
|
||||
_exRegs[addr & 0x03] = value;
|
||||
UpdateState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue