From 3b332a04efe4fd8330314c0078df1cd3ce103d57 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 15 Mar 2004 03:05:55 +0000 Subject: [PATCH] add RageFileManager::GetLoadedDrivers --- stepmania/src/RageFileManager.cpp | 12 ++++++++++++ stepmania/src/RageFileManager.h | 5 +++++ 2 files changed, 17 insertions(+) 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 );