Fix mirroring for Mapper 002 and 003

I was reading the wrong byte in the header to determine the mirroring
for these mappers, which have hard-wired (soldered) mirroring. Reading
the correct byte unsurprisingly corrects issues.
This commit is contained in:
Jeff Katz 2016-11-29 10:00:50 +01:00
parent 7a713c4c95
commit 75ac2ca690
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ class Mapper2 : public Mapper
Mapper2(u8* rom) : Mapper(rom)
{
regs[0] = 0;
vertical_mirroring = rom[7] & 0x01;
vertical_mirroring = rom[6] & 0x01;
apply();
}

View file

@ -13,7 +13,7 @@ class Mapper3 : public Mapper
Mapper3(u8* rom) : Mapper(rom)
{
PRG_size_16k = rom[4] == 1;
vertical_mirroring = rom[7] & 0x01;
vertical_mirroring = rom[6] & 0x01;
regs[0] = 0;
apply();
}