add RageFileManager::GetLoadedDrivers
This commit is contained in:
@@ -352,6 +352,18 @@ bool RageFileManager::MountpointIsReady( CString MountPoint )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void RageFileManager::GetLoadedDrivers( vector<DriverLocation> &Mounts )
|
||||||
|
{
|
||||||
|
for( unsigned i = 0; i < g_Drivers.size(); ++i )
|
||||||
|
{
|
||||||
|
DriverLocation l;
|
||||||
|
l.MountPoint = g_Drivers[i].MountPoint;
|
||||||
|
l.Type = g_Drivers[i].Type;
|
||||||
|
l.Root = g_Drivers[i].Root;
|
||||||
|
Mounts.push_back( l );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void RageFileManager::FlushDirCache( const CString &sPath )
|
void RageFileManager::FlushDirCache( const CString &sPath )
|
||||||
{
|
{
|
||||||
LockMut( *g_Mutex );
|
LockMut( *g_Mutex );
|
||||||
|
|||||||
@@ -31,6 +31,11 @@ public:
|
|||||||
void Unmount( CString Type, CString Root, CString MountPoint );
|
void Unmount( CString Type, CString Root, CString MountPoint );
|
||||||
bool IsMounted( CString MountPoint );
|
bool IsMounted( CString MountPoint );
|
||||||
bool MountpointIsReady( CString MountPoint );
|
bool MountpointIsReady( CString MountPoint );
|
||||||
|
struct DriverLocation
|
||||||
|
{
|
||||||
|
CString Type, Root, MountPoint;
|
||||||
|
};
|
||||||
|
void GetLoadedDrivers( vector<DriverLocation> &Mounts );
|
||||||
|
|
||||||
void FlushDirCache( const CString &sPath );
|
void FlushDirCache( const CString &sPath );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user