mirror of https://github.com/mgba-emu/mgba.git
GB MBC: Fix MBC7 sampling
This commit is contained in:
parent
6c6d09ee7c
commit
fc64924cf5
|
@ -558,7 +558,7 @@ void GBMBC7Write(struct GBMemory* memory, uint16_t address, uint8_t value) {
|
|||
return;
|
||||
case 0x10:
|
||||
mbc7->latch |= (value & 0xAA);
|
||||
if (mbc7->latch == 0xFF && memory->rotation && memory->rotation->sample) {
|
||||
if (mbc7->latch == 0xAB && memory->rotation && memory->rotation->sample) {
|
||||
memory->rotation->sample(memory->rotation);
|
||||
}
|
||||
mbc7->latch = 0;
|
||||
|
|
Loading…
Reference in New Issue