prevent accidental loading of .brr as DMP
This commit is contained in:
parent
a637806e28
commit
a09ccb9b30
|
@ -1980,6 +1980,11 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue