From ab693805997030ec61a18173f4ec657b4e9c3ae7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 22 May 2005 07:53:46 +0000 Subject: [PATCH] allow mounting to the beginning of the mount list --- stepmania/src/RageFileManager.cpp | 4 ++-- stepmania/src/RageFileManager.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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