remove backwards compatibility hack (brittle without also doing it in Unmount, etc)

This commit is contained in:
Glenn Maynard
2005-05-22 02:42:30 +00:00
parent bfda377b10
commit 85f84ef81f
+3 -1
View File
@@ -428,9 +428,11 @@ void RageFileManager::Mount( CString Type, CString Root, CString MountPoint )
FixSlashesInPlace( Root );
FixSlashesInPlace( MountPoint );
ASSERT_M( MountPoint.Left(1) == "/", "Mountpoints must be absolute: " + MountPoint );
if( MountPoint.size() && MountPoint.Right(1) != "/" )
MountPoint += '/';
/* XXX: Backwards compatibility; */
if( MountPoint.Left(1) != "/" )
MountPoint = "/" + MountPoint;
ASSERT( Root != "" );