From 2dfc0c70cf0f80df5791e29ac915a2c92746c0d8 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sun, 30 Apr 2006 06:00:15 +0000 Subject: [PATCH] use human readable names for cache files --- stepmania/src/SongCacheIndex.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/SongCacheIndex.cpp b/stepmania/src/SongCacheIndex.cpp index 58bb40568c..154ac6f22e 100644 --- a/stepmania/src/SongCacheIndex.cpp +++ b/stepmania/src/SongCacheIndex.cpp @@ -31,9 +31,11 @@ SongCacheIndex *SONGINDEX; RString SongCacheIndex::GetCacheFilePath( const RString &sGroup, const RString &sPath ) { - /* Use GetHashForString, not ForFile, since we don't want to spend time + /* Don't use GetHashForFile, since we don't want to spend time * checking the file size and date. */ - return ssprintf( "%s/%s/%u", SpecialFiles::CACHE_DIR.c_str(), sGroup.c_str(), GetHashForString(sPath) ); + RString s = sPath; + s.Replace( '/', '_' ); + return ssprintf( "%s/%s/%s", SpecialFiles::CACHE_DIR.c_str(), sGroup.c_str(), s.c_str() ); } SongCacheIndex::SongCacheIndex()