Allow the use of standard paths in the HD cache file's location
Originally committed to SVN as r6905.
This commit is contained in:
parent
b8c6a41ac4
commit
67c05519fa
1 changed files with 3 additions and 2 deletions
|
@ -57,8 +57,9 @@ namespace {
|
|||
wxString cache_dir() {
|
||||
wxString path = lagi_wxString(OPT_GET("Audio/Cache/HD/Location")->GetString());
|
||||
if (path == "default")
|
||||
return StandardPaths::DecodePath("?temp/");
|
||||
return DecodeRelativePath(path, StandardPaths::DecodePath("?user/"));
|
||||
path = "?temp/";
|
||||
|
||||
return DecodeRelativePath(StandardPaths::DecodePath(path), StandardPaths::DecodePath("?user/"));
|
||||
}
|
||||
|
||||
wxString cache_path() {
|
||||
|
|
Loading…
Reference in a new issue