dev244 - Namco 163: enable wave pos latch by defau

This commit is contained in:
tildearrow 2026-01-18 19:58:01 -05:00
parent ca19c631d9
commit 2a63baf26c
4 changed files with 13 additions and 4 deletions

View file

@ -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

View file

@ -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; i<ds.systemLen; i++) {
if (ds.system[i]==DIV_SYSTEM_N163) {
ds.systemFlags[i].set("posLatch",false);
}
}
}
// warn on partial pitch linearity
if (ds.compatFlags.linearPitch>1) {
ds.compatFlags.linearPitch=1;

View file

@ -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);

View file

@ -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();