From dc3063cf8c211281b834124535c81594e61d793c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 7 Dec 2003 08:31:53 +0000 Subject: [PATCH] FlushDirCache fix --- stepmania/src/RageFileManager.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index f55860ae09..a489f8fe6d 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -178,10 +178,17 @@ void RageFileManager::FlushDirCache( const CString &sPath ) { for( unsigned i = 0; i < g_Drivers.size(); ++i ) { - const CString path = g_Drivers[i].GetPath( sPath ); - if( path.size() == 0 ) - continue; - g_Drivers[i].driver->FlushDirCache( path ); + if( sPath.size() == 0 ) + { + g_Drivers[i].driver->FlushDirCache( "" ); + } + else + { + const CString path = g_Drivers[i].GetPath( sPath ); + if( path.size() == 0 ) + continue; + g_Drivers[i].driver->FlushDirCache( path ); + } } }