partial compile fix

This commit is contained in:
Glenn Maynard
2005-09-29 06:23:39 +00:00
parent b8accdb7ec
commit 9a86f82a15
+4 -4
View File
@@ -404,7 +404,7 @@ void RageFileManager::GetDirListing( CString sPath, CStringArray &AddTo, bool bO
/* Files may only be moved within the same file driver. */
bool RageFileManager::MoveFile( CString sOldPath, CString sNewPath )
{
vector<LoadedDriver> aDriverList;
vector<LoadedDriver *> aDriverList;
ReferenceAllDrivers( aDriverList );
NormalizePath( sOldPath );
@@ -414,12 +414,12 @@ bool RageFileManager::MoveFile( CString sOldPath, CString sNewPath )
bool Deleted = false;
for( unsigned i = 0; i < aDriverList.size(); ++i )
{
const CString sOldDriverPath = aDriverList[i].GetPath( sOldPath );
const CString sNewDriverPath = aDriverList[i].GetPath( sNewPath );
const CString sOldDriverPath = aDriverList[i]->GetPath( sOldPath );
const CString sNewDriverPath = aDriverList[i]->GetPath( sNewPath );
if( sOldDriverPath.size() == 0 || sNewDriverPath.size() == 0 )
continue;
bool ret = aDriverList[i].driver->MoveFile( sOldDriverPath, sNewDriverPath );
bool ret = aDriverList[i]->m_pDriver->MoveFile( sOldDriverPath, sNewDriverPath );
if( ret )
Deleted = true;
}