Update MMC3.h

Fixes failing MMC3 IRQ Tests by blargg. IRQ shouldn't occur when reloading after counter normally reaches 0
This commit is contained in:
mkwong98 2021-03-16 00:18:31 +08:00
parent 725e2ba466
commit c16d0ac8b3

View file

@ -278,7 +278,7 @@ class MMC3 : public BaseMapper
if(ForceMmc3RevAIrqs() || _console->GetSettings()->CheckFlag(EmulationFlags::Mmc3IrqAltBehavior)) {
//MMC3 Revision A behavior
if((count > 0 || _irqReload) && _irqCounter == 0 && _irqEnabled) {
if(((count > 0 && _irqReloadValue > 0) || _irqReload) && _irqCounter == 0 && _irqEnabled) {
TriggerIrq();
}
} else {