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

View file

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