snes.cpp: Do not update HDMA if enabled channels are the same (#5602) [AmatCoder]

Fixing Pilotwings (MT 06205)
This commit is contained in:
AmatCoder 2019-09-08 18:43:50 +02:00 committed by Angelo Salese
parent 047cfe2b3a
commit a2365ce2d0

View File

@ -560,7 +560,7 @@ WRITE8_MEMBER( snes_state::snes_w_io )
SNES_CPU_REG(MDMAEN) = 0; /* Once DMA is done we need to reset all bits to 0 */
return;
case HDMAEN: /* HDMA channel designation */
if (data) //if a HDMA is enabled, data is inited at the next scanline
if (data != SNES_CPU_REG(HDMAEN)) //if a HDMA is enabled, data is inited at the next scanline
timer_set(m_screen->time_until_pos(m_ppu->current_vert() + 1), TIMER_RESET_HDMA);
SNES_CPU_REG(HDMAEN) = data;
return;