27 lines
685 B
C++
27 lines
685 B
C++
#ifndef RAGE_FILE_DRIVER_DIRECT_H
|
|
#define RAGE_FILE_DRIVER_DIRECT_H
|
|
|
|
#include "RageFileDriver.h"
|
|
|
|
class FilenameDB;
|
|
class RageFileDriverDirect: public RageFileDriver
|
|
{
|
|
public:
|
|
RageFileDriverDirect( CString root );
|
|
virtual ~RageFileDriverDirect();
|
|
|
|
RageFileObj *Open( CString path, RageFile::OpenMode mode, RageFile &p, int &err );
|
|
void GetDirListing( CString sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo );
|
|
RageFileManager::FileType GetFileType( CString sPath );
|
|
int GetFileSizeInBytes( CString sFilePath );
|
|
int GetFileModTime( CString sPath );
|
|
bool Ready();
|
|
void FlushDirCache( const CString &sPath );
|
|
|
|
private:
|
|
CString root;
|
|
FilenameDB *FDB;
|
|
};
|
|
|
|
#endif
|