Update MMC3_52, Fix: Mario 7-in-1 display errors

Courtesy to @ptkila for the fix, confirmed working as intended after merge in my own branch.
This commit is contained in:
RokkumanX 2021-06-22 19:52:26 +02:00 committed by GitHub
parent 82e6ff0b8e
commit 45f2a51f28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,11 +27,12 @@ protected:
{
if(_extraReg & 0x40) {
page &= 0x7F;
page |= ((_extraReg & 0x04) | ((_extraReg >> 4) & 0x03)) << 7;
page |= (((_extraReg & 0x20) >> 3) | ((_extraReg & 0x10) >> 4) | ((_extraReg & 0x04) >> 1)) << 7;
} else {
page &= 0xFF;
page |= ((_extraReg & 0x04) | ((_extraReg >> 4) & 0x02)) << 7;
page |= (((_extraReg & 0x20) >> 3) | ((_extraReg & 0x10) >> 4)) << 7;
}
MMC3::SelectCHRPage(slot, page, memoryType);
}