From 550f7c4f13c2229892f2fc165c4f5287f8e32ea4 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 19 Feb 2024 21:25:11 -0500 Subject: [PATCH] and now for .dmp loading --- src/engine/fileOpsIns.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/fileOpsIns.cpp b/src/engine/fileOpsIns.cpp index 817c28463..7f9559b3a 100644 --- a/src/engine/fileOpsIns.cpp +++ b/src/engine/fileOpsIns.cpp @@ -335,6 +335,10 @@ void DivEngine::loadDMP(SafeReader& reader, std::vector& ret, St if (version>5) { for (int i=0; istd.waveMacro.len; i++) { ins->std.waveMacro.val[i]=reader.readI(); + // piece of crap offset by 1 + if (ins->type==DIV_INS_AY) { + ins->std.waveMacro.val[i]++; + } } } else { for (int i=0; istd.waveMacro.len; i++) {