9e9e012310
It's still written over for each file; this way, if a file load crashes, the earlier files will still be written to cache.
21 lines
409 B
C++
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
|