From bf19feab89a0c8571360141c82f7d04cd1dfdc26 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 26 Jan 2022 15:55:37 -0500 Subject: [PATCH] NES: actually set chip type to 2A07 if PAL fixes #72 see also #27 --- src/engine/platform/nes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/platform/nes.cpp b/src/engine/platform/nes.cpp index 5e5addc6..41213f1a 100644 --- a/src/engine/platform/nes.cpp +++ b/src/engine/platform/nes.cpp @@ -375,9 +375,11 @@ void DivPlatformNES::setPAL(bool pal) { if (pal) { rate=1662607; freqBase=FREQ_BASE_PAL; + nes->apu.type=1; } else { rate=1789773; freqBase=FREQ_BASE; + nes->apu.type=0; } } @@ -395,6 +397,7 @@ int DivPlatformNES::init(DivEngine* p, int channels, int sugRate, bool pal) { isMuted[i]=false; } nes=new struct NESAPU; + setPAL(pal); init_nla_table(500,500); reset();