fix ECxx effect

fixes #57
This commit is contained in:
tildearrow 2022-01-23 22:00:46 -05:00
parent 9fe0efd63a
commit 35ee06d6cf
2 changed files with 4 additions and 2 deletions

View file

@ -939,6 +939,9 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
} else {
ins->std.dutyMacro[j]=reader.readI();
}
if ((ds.system[0]==DIV_SYSTEM_C64_8580 || ds.system[0]==DIV_SYSTEM_C64_6581) && ins->std.dutyMacro[j]>24) {
ins->std.dutyMacro[j]=24;
}
}
if (ins->std.dutyMacroLen>0) {
ins->std.dutyMacroLoop=reader.readC();