From 67c05519faa3b5025d8c7149df13a6e30be8d654 Mon Sep 17 00:00:00 2001 From: cantabile Date: Fri, 15 Jun 2012 13:08:39 +0000 Subject: [PATCH] Allow the use of standard paths in the HD cache file's location Originally committed to SVN as r6905. --- aegisub/src/audio_provider_hd.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aegisub/src/audio_provider_hd.cpp b/aegisub/src/audio_provider_hd.cpp index bd1adafad..d22bfe413 100644 --- a/aegisub/src/audio_provider_hd.cpp +++ b/aegisub/src/audio_provider_hd.cpp @@ -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() {