remove backwards compatibility hack (brittle without also doing it in Unmount, etc)
This commit is contained in:
@@ -428,9 +428,11 @@ void RageFileManager::Mount( CString Type, CString Root, CString MountPoint )
|
|||||||
FixSlashesInPlace( Root );
|
FixSlashesInPlace( Root );
|
||||||
FixSlashesInPlace( MountPoint );
|
FixSlashesInPlace( MountPoint );
|
||||||
|
|
||||||
|
ASSERT_M( MountPoint.Left(1) == "/", "Mountpoints must be absolute: " + MountPoint );
|
||||||
|
|
||||||
if( MountPoint.size() && MountPoint.Right(1) != "/" )
|
if( MountPoint.size() && MountPoint.Right(1) != "/" )
|
||||||
MountPoint += '/';
|
MountPoint += '/';
|
||||||
/* XXX: Backwards compatibility; */
|
|
||||||
if( MountPoint.Left(1) != "/" )
|
if( MountPoint.Left(1) != "/" )
|
||||||
MountPoint = "/" + MountPoint;
|
MountPoint = "/" + MountPoint;
|
||||||
ASSERT( Root != "" );
|
ASSERT( Root != "" );
|
||||||
|
|||||||
Reference in New Issue
Block a user