From 3dfdc61aac1a852a1b3ca81b68c775d574bb6972 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 23 May 2004 22:11:33 +0000 Subject: [PATCH] maybe fix stray backslashes making it into root paths, causing stray "Couldn't create d:\: Permission denied" --- stepmania/src/RageFileManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index e563dc17f4..fb336c3511 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -288,6 +288,9 @@ void RageFileManager::Mount( CString Type, CString Root, CString MountPoint ) { LockMut( *g_Mutex ); + FixSlashesInPlace( Root ); + FixSlashesInPlace( MountPoint ); + if( MountPoint.size() && MountPoint.Right(1) != "/" ) MountPoint += '/'; ASSERT( Root != "" ); @@ -327,6 +330,9 @@ void RageFileManager::Unmount( CString Type, CString Root, CString MountPoint ) { LockMut( *g_Mutex ); + FixSlashesInPlace( Root ); + FixSlashesInPlace( MountPoint ); + if( MountPoint.size() && MountPoint.Right(1) != "/" ) MountPoint += '/';