fix compile

This commit is contained in:
Chris Danford
2005-12-29 02:42:29 +00:00
parent df984aef76
commit 3eb451f76f
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
#include "Banner.h"
#define BANNER_CACHE_INDEX CACHE_DIR "banners.cache"
const CString BANNER_CACHE_INDEX = SpecialFiles::CACHE_DIR + "banners.cache";
/* Call CacheBanner to cache a banner by path. If the banner is already
+5 -5
View File
@@ -33,7 +33,7 @@ CString SongCacheIndex::GetCacheFilePath( const CString &sGroup, const CString &
{
/* Use GetHashForString, not ForFile, since we don't want to spend time
* checking the file size and date. */
return ssprintf( "%s/%s/%u", CACHE_DIR, sGroup.c_str(), GetHashForString(sPath) );
return ssprintf( "%s/%s/%u", SpecialFiles::CACHE_DIR.c_str(), sGroup.c_str(), GetHashForString(sPath) );
}
SongCacheIndex::SongCacheIndex()
@@ -69,10 +69,10 @@ void SongCacheIndex::ReadCacheIndex()
return; /* OK */
LOG->Trace( "Cache format is out of date. Deleting all cache files." );
EmptyDir( CACHE_DIR );
EmptyDir( CACHE_DIR "Banners/" );
EmptyDir( CACHE_DIR "Songs/" );
EmptyDir( CACHE_DIR "Courses/" );
EmptyDir( SpecialFiles::CACHE_DIR );
EmptyDir( SpecialFiles::CACHE_DIR+"Banners/" );
EmptyDir( SpecialFiles::CACHE_DIR+"Songs/" );
EmptyDir( SpecialFiles::CACHE_DIR+"Courses/" );
CacheIndex.Clear();
}