From bfa3aba65454a69d0be583129177fc3786d6a53b Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 23 Jun 2012 01:06:32 +0000 Subject: [PATCH] Don't try to use wxFileName::Exists with wx 2.9.3. Closes #1500. Originally committed to SVN as r6913. --- aegisub/src/audio_provider_hd.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aegisub/src/audio_provider_hd.cpp b/aegisub/src/audio_provider_hd.cpp index 8dea6d5dc..69ca7139c 100644 --- a/aegisub/src/audio_provider_hd.cpp +++ b/aegisub/src/audio_provider_hd.cpp @@ -70,7 +70,11 @@ wxString cache_path() { for (int i=0;i<100;i++) { // File exists? wxFileName curNameTry(cache_dir(), wxString::Format(pattern, i)); +#if wxCHECK_VERSION(2, 9, 4) if (!curNameTry.Exists()) +#else + if (!curNameTry.FileExists() && !curNameTry.DirExists()) +#endif return curNameTry.GetFullPath(); } return "";