fix version 9 .dmp -_-

This commit is contained in:
tildearrow 2022-04-03 02:34:35 -05:00
parent 5ff1c9d70d
commit 82ae2bf877
1 changed files with 7 additions and 1 deletions

View File

@ -261,7 +261,13 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path) {
logD("reading FM data...\n");
if (version<10) {
if (version>1) {
// 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;
}