Fix RageFileManager not resolving paths reliably
authorMark Cannon <vyhdycokio@gmail.com>
Wed, 11 Aug 2010 06:04:07 +0000 (06:04 +0000)
committerMark Cannon <vyhdycokio@gmail.com>
Wed, 11 Aug 2010 06:04:07 +0000 (06:04 +0000)
git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg/branches/dev@788 83fadc84-e282-4d84-a09a-c4228d6ae7e5

src/RageFileManager.cpp

index cf89af2..fdb4b31 100755 (executable)
@@ -721,18 +721,15 @@ CString RageFileManager::ResolvePath( const CString &sPath_ )
        {
                LoadedDriver *pDriver = apDriverList[i];
 
-               if( pDriver->m_sType == "mountpoints" )
-                       continue;
-
-               const CString p = pDriver->GetPath(sPath);
+               FileType type = pDriver->m_pDriver->GetFileType(sPath);
 
-               if( p.empty() )
+               if( type != TYPE_DIR )
                        continue;
 
-               sResolvedPath = pDriver->m_sRoot + p;
+               sResolvedPath = pDriver->m_sRoot + sPath;
 
-               LOG->Debug( "p: %s, pDriver->m_sRoot: %s, sResolvedPath: %s",
-                       p.c_str(), pDriver->m_sRoot.c_str(), sResolvedPath.c_str() );
+               LOG->Debug( "sPath: %s, pDriver->m_sRoot: %s, sResolvedPath: %s",
+                       sPath.c_str(), pDriver->m_sRoot.c_str(), sResolvedPath.c_str() );
 
                break;
        }