From 2c1a1b20de17c888d6ee0e6510ae2364bf8a4f12 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 9 Nov 2022 23:24:03 -0500 Subject: [PATCH] YM2612: fix ExtCh macro one-tick delay --- src/engine/platform/genesisext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/platform/genesisext.cpp b/src/engine/platform/genesisext.cpp index 42dba6f4b..45a8898db 100644 --- a/src/engine/platform/genesisext.cpp +++ b/src/engine/platform/genesisext.cpp @@ -462,8 +462,6 @@ void DivPlatformGenesisExt::tick(bool sysTick) { } } - DivPlatformGenesis::tick(sysTick); - if (extMode && !noExtMacros) for (int i=0; i<4; i++) { opChan[i].std.next(); @@ -549,6 +547,8 @@ void DivPlatformGenesisExt::tick(bool sysTick) { } } + DivPlatformGenesis::tick(sysTick); + bool writeNoteOn=false; unsigned char writeMask=2; if (extMode) for (int i=0; i<4; i++) {