From d99f3e38416641f7ed7f7f9b4f1345d5c9bc134d Mon Sep 17 00:00:00 2001 From: cantabile Date: Fri, 15 Jun 2012 13:08:41 +0000 Subject: [PATCH] Fix missing ending slash in the HD cache file's location Given the location "/home/asdf/.aegisub" and name "audio%02i.tmp", the cache file was ".aegisubaudio00.tmp" in "/home/asdf"... Originally committed to SVN as r6906. --- aegisub/src/audio_provider_hd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/src/audio_provider_hd.cpp b/aegisub/src/audio_provider_hd.cpp index d22bfe413..a434b5246 100644 --- a/aegisub/src/audio_provider_hd.cpp +++ b/aegisub/src/audio_provider_hd.cpp @@ -69,9 +69,9 @@ wxString cache_path() { // Try from 00 to 99 for (int i=0;i<100;i++) { // File exists? - wxString curStringTry = cache_dir() + wxString::Format(pattern,i); - if (!wxFile::Exists(curStringTry)) - return curStringTry; + wxFileName curNameTry(cache_dir(), wxString::Format(pattern, i)); + if (!curNameTry.Exists()) + return curNameTry.GetFullPath(); } return ""; }