mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +00:00
prevent accidental loading of .brr as DMP
This commit is contained in:
parent
a637806e28
commit
a09ccb9b30
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue