diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index fea6662bae..cc7b88f568 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -352,6 +352,18 @@ bool RageFileManager::MountpointIsReady( CString MountPoint ) return false; } +void RageFileManager::GetLoadedDrivers( vector &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 ) { LockMut( *g_Mutex ); diff --git a/stepmania/src/RageFileManager.h b/stepmania/src/RageFileManager.h index 42b15f1c26..f30f9d319f 100644 --- a/stepmania/src/RageFileManager.h +++ b/stepmania/src/RageFileManager.h @@ -31,6 +31,11 @@ public: void Unmount( CString Type, CString Root, CString MountPoint ); bool IsMounted( CString MountPoint ); bool MountpointIsReady( CString MountPoint ); + struct DriverLocation + { + CString Type, Root, MountPoint; + }; + void GetLoadedDrivers( vector &Mounts ); void FlushDirCache( const CString &sPath );