prevent accidental loading of .brr as DMP

This commit is contained in:
tildearrow 2022-11-29 00:09:08 -05:00
parent a637806e28
commit a09ccb9b30
1 changed files with 6 additions and 1 deletions

View File

@ -1980,7 +1980,12 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path, bool
format=DIV_INSFORMAT_WOPL;
} else if (extS==".wopn") {
format=DIV_INSFORMAT_WOPN;
}
} else {
// unknown format
lastError="unknown instrument format";
delete[] buf;
return ret;
}
}
switch (format) {