From: Mark Cannon Date: Sat, 16 Apr 2011 03:00:24 +0000 (-0400) Subject: add quick/dirty hack to skip read-only dirs when opening a file for writing X-Git-Url: http://cameron1729.xyz/?a=commitdiff_plain;h=31cd9a0de9f2ab767114894f57be1388540d53cf;p=openitg.git add quick/dirty hack to skip read-only dirs when opening a file for writing --- diff --git a/src/RageFileManager.cpp b/src/RageFileManager.cpp index 60fe71f8..20136115 100755 --- a/src/RageFileManager.cpp +++ b/src/RageFileManager.cpp @@ -849,6 +849,12 @@ RageFileBasic *RageFileManager::OpenForWriting( const CString &sPath, int mode, for( unsigned i = 0; i < apDriverList.size(); ++i ) { LoadedDriver &ld = *apDriverList[i]; + + // HACK: skip over "dirro". We need to find a more generic + // method for this (skipping drivers that cannot write) + if( ld.m_sType == "dirro" ) + continue; + const CString path = ld.GetPath( sPath ); if( path.empty() ) continue;