Merge pull request #783 from jpcima/user-path
Fix inability to save the user directory
This commit is contained in:
commit
38e07c3729
1 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue