Files
itgmania212121/stepmania/src/RageFileManager.h
T

41 lines
1.0 KiB
C++
Raw Normal View History

2003-12-04 08:25:59 +00:00
#ifndef RAGE_FILE_MANAGER_H
#define RAGE_FILE_MANAGER_H
#include "RageFile.h"
class RageFileObj;
class RageFileManager
{
public:
RageFileManager();
~RageFileManager();
2003-12-05 02:25:32 +00:00
void GetDirListing( CString sPath, CStringArray &AddTo, bool bOnlyDirs, bool bReturnPathToo );
2003-12-04 08:25:59 +00:00
enum FileType { TYPE_FILE, TYPE_DIR, TYPE_NONE };
FileType GetFileType( const CString &sPath );
bool IsAFile( const CString &sPath );
bool IsADirectory( const CString &sPath );
bool DoesFileExist( const CString &sPath );
int GetFileSizeInBytes( const CString &sPath );
int GetFileModTime( const CString &sPath );
2003-12-05 00:07:18 +00:00
void Mount( CString Type, CString RealPath, CString MountPoint );
bool IsMounted( CString MountPoint );
bool MountpointIsReady( CString MountPoint );
2003-12-04 08:25:59 +00:00
2003-12-07 04:21:04 +00:00
void FlushDirCache( const CString &sPath );
2003-12-04 08:25:59 +00:00
/* Used only by RageFile: */
RageFileObj *Open( const CString &sPath, RageFile::OpenMode mode, RageFile &p, int &err );
2003-12-05 02:25:32 +00:00
private:
RageFileObj *OpenForWriting( const CString &sPath, RageFile::OpenMode mode, RageFile &p, int &err );
2003-12-04 08:25:59 +00:00
};
extern RageFileManager *FILEMAN;
#endif