allow mounting to the beginning of the mount list

This commit is contained in:
Glenn Maynard
2005-05-22 07:53:46 +00:00
parent 3dd72a3609
commit ab69380599
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -423,7 +423,7 @@ void RageFileManager::CreateDir( CString sDir )
FILEMAN->Remove( sTempFile );
}
void RageFileManager::Mount( CString Type, CString Root, CString MountPoint )
void RageFileManager::Mount( CString Type, CString Root, CString MountPoint, bool bAddToEnd )
{
FixSlashesInPlace( Root );
FixSlashesInPlace( MountPoint );
@@ -465,7 +465,7 @@ void RageFileManager::Mount( CString Type, CString Root, CString MountPoint )
ld.MountPoint = MountPoint;
g_Mutex->Lock();
g_Drivers.push_back( ld );
g_Drivers.insert( bAddToEnd? g_Drivers.end():g_Drivers.begin(), ld );
CHECKPOINT;
g_Mountpoints->LoadFromDrivers( g_Drivers );
CHECKPOINT;