mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-27 11:00:50 +00:00
Mapper 15: Update compatibility (#347)
This commit is contained in:
parent
dc8382faf0
commit
ef8735a182
@ -10,10 +10,14 @@ protected:
|
||||
|
||||
void InitMapper() override
|
||||
{
|
||||
WriteRegister(0x8000, 0);
|
||||
SelectCHRPage(0, 0);
|
||||
}
|
||||
|
||||
void Reset(bool softReset) override
|
||||
{
|
||||
WriteRegister(0x8000, 0);
|
||||
}
|
||||
|
||||
void WriteRegister(uint16_t addr, uint8_t value) override
|
||||
{
|
||||
SetMirroringType(value & 0x40 ? MirroringType::Horizontal : MirroringType::Vertical);
|
||||
@ -33,7 +37,8 @@ protected:
|
||||
bank |= subBank;
|
||||
SelectPRGPage(0, bank);
|
||||
SelectPRGPage(1, bank + 1);
|
||||
SelectPRGPage(2, bank + ((addr & 0x02) ? 0 : 1));
|
||||
bank = ((addr & 0x02) ? bank : 0xFE) | subBank;
|
||||
SelectPRGPage(2, bank + 0);
|
||||
SelectPRGPage(3, bank + 1);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user