diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index 90eb2cdab9..2859e254a4 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -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; diff --git a/stepmania/src/RageFileManager.h b/stepmania/src/RageFileManager.h index ae435c4ae6..9eea413a4b 100644 --- a/stepmania/src/RageFileManager.h +++ b/stepmania/src/RageFileManager.h @@ -30,7 +30,7 @@ public: int GetFileSizeInBytes( CString sPath ); int GetFileHash( CString sPath ); - void Mount( CString Type, CString RealPath, CString MountPoint ); + void Mount( CString Type, CString RealPath, CString MountPoint, bool bAddToEnd = true ); void Unmount( CString Type, CString Root, CString MountPoint ); /* Change the root of a filesystem. Only a couple drivers support this; it's