From: Mark Cannon Date: Wed, 11 Aug 2010 06:04:07 +0000 (+0000) Subject: Fix RageFileManager not resolving paths reliably X-Git-Tag: beta3~59 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=9310a8fe9d3033908defc2688420c117fee8d355;p=openitg.git Fix RageFileManager not resolving paths reliably git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg/branches/dev@788 83fadc84-e282-4d84-a09a-c4228d6ae7e5 --- diff --git a/src/RageFileManager.cpp b/src/RageFileManager.cpp index cf89af23..fdb4b31c 100755 --- a/src/RageFileManager.cpp +++ b/src/RageFileManager.cpp @@ -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; }