Bloody cache.
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@
|
|||||||
* @brief The internal version of the cache for StepMania.
|
* @brief The internal version of the cache for StepMania.
|
||||||
*
|
*
|
||||||
* Increment this value to invalidate the current cache. */
|
* Increment this value to invalidate the current cache. */
|
||||||
const int FILE_CACHE_VERSION = 213;
|
const int FILE_CACHE_VERSION = 215;
|
||||||
|
|
||||||
/** @brief How long does a song sample last by default? */
|
/** @brief How long does a song sample last by default? */
|
||||||
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
|
const float DEFAULT_MUSIC_SAMPLE_LENGTH = 12.f;
|
||||||
|
|||||||
@@ -98,6 +98,12 @@ void SongCacheIndex::ReadCacheIndex()
|
|||||||
EmptyDir( SpecialFiles::CACHE_DIR+"Courses/" );
|
EmptyDir( SpecialFiles::CACHE_DIR+"Courses/" );
|
||||||
|
|
||||||
CacheIndex.Clear();
|
CacheIndex.Clear();
|
||||||
|
/* This is right now in place because our song file paths are apparently being
|
||||||
|
* cached in two distinct areas, and songs were loading from paths in FILEMAN.
|
||||||
|
* This is admittedly a hack for now, but this does bring up a good question on
|
||||||
|
* whether we really need a dedicated cache for future versions of StepMania.
|
||||||
|
*/
|
||||||
|
FILEMAN->FlushDirCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SongCacheIndex::AddCacheIndex(const RString &path, unsigned hash)
|
void SongCacheIndex::AddCacheIndex(const RString &path, unsigned hash)
|
||||||
|
|||||||
Reference in New Issue
Block a user