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:
parent
7a713c4c95
commit
75ac2ca690
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Reference in a new issue