Merge pull request #783 from jpcima/user-path

Fix inability to save the user directory
This commit is contained in:
JP Cimalando 2021-04-06 01:38:18 +02:00 committed by GitHub
commit 38e07c3729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,8 @@ static const fs::path getSettingsPath()
dirPath /= "SFZTools";
dirPath /= "sfizz";
std::error_code ec;
if (!fs::create_directories(dirPath, ec))
fs::create_directories(dirPath, ec);
if (ec)
return {};
return dirPath / "settings.xml";
}