Don't consider explicitly read-only paths for file writing
authorMarc Cannon <vyhdycokio@gmail.com>
Fri, 28 Dec 2012 23:57:11 +0000 (23:57 +0000)
committerMarc Cannon <vyhdycokio@gmail.com>
Sun, 30 Dec 2012 02:20:33 +0000 (02:20 +0000)
src/RageFileManager.cpp

index 3ea0434..213cc8c 100755 (executable)
@@ -849,7 +849,11 @@ RageFileBasic *RageFileManager::OpenForWriting( const CString &sPath, int mode,
        for( unsigned i = 0; i < apDriverList.size(); ++i )
        {
                LoadedDriver &ld = *apDriverList[i];
-               const CString path = ld.GetPath( sPath );
+
+               if( ld.m_sType == "dirro" )
+                       continue;
+
+               const CString &path = ld.GetPath( sPath );
                if( path.empty() )
                        continue;