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:
parent
67c05519fa
commit
d99f3e3841
1 changed files with 3 additions and 3 deletions
|
@ -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 "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue