From 2a63baf26c85551bbe3684ad76e79c55ee12629d Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 18 Jan 2026 19:58:01 -0500 Subject: [PATCH] dev244 - Namco 163: enable wave pos latch by defau --- src/engine/engine.h | 4 ++-- src/engine/fileOps/fur.cpp | 9 +++++++++ src/engine/platform/n163.cpp | 2 +- src/gui/sysConf.cpp | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/engine/engine.h b/src/engine/engine.h index b27ef70ab..58607e1ae 100644 --- a/src/engine/engine.h +++ b/src/engine/engine.h @@ -56,8 +56,8 @@ class DivWorkPool; #define DIV_UNSTABLE -#define DIV_VERSION "dev243" -#define DIV_ENGINE_VERSION 243 +#define DIV_VERSION "dev244" +#define DIV_ENGINE_VERSION 244 // for imports #define DIV_VERSION_MOD 0xff01 #define DIV_VERSION_FC 0xff02 diff --git a/src/engine/fileOps/fur.cpp b/src/engine/fileOps/fur.cpp index f165f6b0d..131fbf3b3 100644 --- a/src/engine/fileOps/fur.cpp +++ b/src/engine/fileOps/fur.cpp @@ -2412,6 +2412,15 @@ bool DivEngine::loadFur(unsigned char* file, size_t len, int variantID) { } } + // Namco 163 no wave pos latch + if (ds.version<244) { + for (int i=0; i1) { ds.compatFlags.linearPitch=1; diff --git a/src/engine/platform/n163.cpp b/src/engine/platform/n163.cpp index b27f7f4e7..167b98b90 100644 --- a/src/engine/platform/n163.cpp +++ b/src/engine/platform/n163.cpp @@ -635,7 +635,7 @@ void DivPlatformN163::setFlags(const DivConfig& flags) { CHECK_CUSTOM_CLOCK; initChanMax=chanMax=flags.getInt("channels",7)&7; multiplex=!flags.getBool("multiplex",false); // not accurate in real hardware - posLatch=flags.getBool("posLatch",false); + posLatch=flags.getBool("posLatch",true); rate=chipClock; rate/=15; n163.set_multiplex(multiplex); diff --git a/src/gui/sysConf.cpp b/src/gui/sysConf.cpp index 05b648ea5..2a84fcc3f 100644 --- a/src/gui/sysConf.cpp +++ b/src/gui/sysConf.cpp @@ -1259,7 +1259,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl int channels=flags.getInt("channels",7)+1; bool multiplex=flags.getBool("multiplex",false); bool lenCompensate=flags.getBool("lenCompensate",false); - bool posLatch=flags.getBool("posLatch",false); + bool posLatch=flags.getBool("posLatch",true); ImGui::Text(_("Clock rate:")); ImGui::Indent();