Stop sfizz from crashing host (ardour) if no SFZ file is loaded and project is reloaded
This commit is contained in:
parent
9eddd5f649
commit
c6cc205425
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,8 @@ bool sfz::Parser::loadSfzFile(const fs::path& file)
|
|||
{
|
||||
includedFiles.clear();
|
||||
|
||||
const auto sfzFile = file.is_absolute() ? file : originalDirectory / file;
|
||||
const auto sfzFile =
|
||||
(file.empty() || file.is_absolute()) ? file : originalDirectory / file;
|
||||
if (!fs::exists(sfzFile))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue