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 cache_dir() {
|
||||||
wxString path = lagi_wxString(OPT_GET("Audio/Cache/HD/Location")->GetString());
|
wxString path = lagi_wxString(OPT_GET("Audio/Cache/HD/Location")->GetString());
|
||||||
if (path == "default")
|
if (path == "default")
|
||||||
return StandardPaths::DecodePath("?temp/");
|
path = "?temp/";
|
||||||
return DecodeRelativePath(path, StandardPaths::DecodePath("?user/"));
|
|
||||||
|
return DecodeRelativePath(StandardPaths::DecodePath(path), StandardPaths::DecodePath("?user/"));
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString cache_path() {
|
wxString cache_path() {
|
||||||
|
|
Loading…
Reference in a new issue