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.
This commit is contained in:
cantabile 2012-06-15 13:08:41 +00:00 committed by Thomas Goyne
parent 67c05519fa
commit d99f3e3841

View file

@ -69,9 +69,9 @@ wxString cache_path() {
// Try from 00 to 99 // Try from 00 to 99
for (int i=0;i<100;i++) { for (int i=0;i<100;i++) {
// File exists? // File exists?
wxString curStringTry = cache_dir() + wxString::Format(pattern,i); wxFileName curNameTry(cache_dir(), wxString::Format(pattern, i));
if (!wxFile::Exists(curStringTry)) if (!curNameTry.Exists())
return curStringTry; return curNameTry.GetFullPath();
} }
return ""; return "";
} }