Allow the use of standard paths in the HD cache file's location

Originally committed to SVN as r6905.
This commit is contained in:
cantabile 2012-06-15 13:08:39 +00:00 committed by Thomas Goyne
parent b8c6a41ac4
commit 67c05519fa
1 changed files with 3 additions and 2 deletions

View File

@ -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() {