dev195 - C64: prevent cutoff macro race

issue #1790
This commit is contained in:
tildearrow 2024-03-13 02:11:57 -05:00
parent e1c4b20ef9
commit 7ffc67529c
5 changed files with 16 additions and 5 deletions

View file

@ -2064,6 +2064,15 @@ bool DivEngine::loadFur(unsigned char* file, size_t len) {
}
}
// C64 macro race
if (ds.version<195) {
for (int i=0; i<ds.systemLen; i++) {
if (ds.system[i]==DIV_SYSTEM_C64_8580 || ds.system[i]==DIV_SYSTEM_C64_6581) {
ds.systemFlags[i].set("macroRace",true);
}
}
}
if (active) quitDispatch();
BUSY_BEGIN_SOFT;
saveLock.lock();