Files
itgmania212121/stepmania/src/SongCacheIndex.h
T
Glenn Maynard 9e9e012310 Move cache indexing into a global object. Only load the cache file once, instead of for each song loaded. (Speedup, and simplifies Song.cpp.)
It's still written over for each file; this way, if a file load crashes, the earlier files will still be written to cache.
2002-08-21 02:13:08 +00:00

21 lines
409 B
C++

#ifndef SONG_CACHE_INDEX_H
#define SONG_CACHE_INDEX_H
#include "stdafx.h"
#include "IniFile.h"
class SongCacheIndex {
IniFile CacheIndex;
public:
SongCacheIndex();
~SongCacheIndex();
void ReadCacheIndex();
void AddCacheIndex( const CString &path, int hash );
int GetCacheHash( const CString &path );
};
extern SongCacheIndex *SONGINDEX; // global and accessable from anywhere in our program
#endif