From 82ae2bf8778105537cc040c589fb8344e3c1e507 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 3 Apr 2022 02:34:35 -0500 Subject: [PATCH] fix version 9 .dmp -_- --- src/engine/fileOpsIns.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/engine/fileOpsIns.cpp b/src/engine/fileOpsIns.cpp index 6b96db59..7343efa5 100644 --- a/src/engine/fileOpsIns.cpp +++ b/src/engine/fileOpsIns.cpp @@ -261,7 +261,13 @@ std::vector DivEngine::instrumentFromFile(const char* path) { logD("reading FM data...\n"); if (version<10) { if (version>1) { - ins->fm.ops=reader.readC()?4:2; + // bullcrap! no way to determine the instrument type other than a vague FM/STD! + if (reader.size()==51) { + reader.readC(); + ins->fm.ops=4; + } else { + ins->fm.ops=reader.readC()?4:2; + } } else { ins->fm.ops=reader.readC()?2:4; }