From 10845eebecdee42ccfe65b7791a242ca4d5d9eaa Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 21 Aug 2006 13:06:21 +0000 Subject: [PATCH] Don't use leading underscores in file names either. --- stepmania/src/SongCacheIndex.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/SongCacheIndex.cpp b/stepmania/src/SongCacheIndex.cpp index a87259556f..5d8d2ce94d 100644 --- a/stepmania/src/SongCacheIndex.cpp +++ b/stepmania/src/SongCacheIndex.cpp @@ -37,6 +37,8 @@ RString SongCacheIndex::GetCacheFilePath( const RString &sGroup, const RString & if( sPath.size() > 2 && sPath[0] == '/' && sPath[sPath.size()-1] == '/' ) s.assign( sPath, 1, sPath.size() - 2 ); + else if( sPath.size() > 1 && sPath[0] == '/' ) + s.assign( sPath, 1, sPath.size() - 1 ); else s = sPath; /* Change slashes and invalid utf-8 characters to _.