From 951741153bf67dd15d0c220d11fa7aabec2e4b0b Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 16 Sep 2006 03:44:47 +0000 Subject: [PATCH] Only flush the directory into which we're writing. --- stepmania/src/NotesWriterDWI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/NotesWriterDWI.cpp b/stepmania/src/NotesWriterDWI.cpp index d96d793864..57e710cf98 100644 --- a/stepmania/src/NotesWriterDWI.cpp +++ b/stepmania/src/NotesWriterDWI.cpp @@ -4,6 +4,7 @@ #include "NoteData.h" #include "RageUtil.h" #include "RageLog.h" +#include "RageFileManager.h" #include "RageFile.h" #include "NoteDataUtil.h" #include "RageFile.h" @@ -316,7 +317,7 @@ bool NotesWriterDWI::WriteDWINotesTag( RageFile &f, const Steps &out ) return false; // not supported by DWI /* Flush dir cache when writing steps, so the old size isn't cached. */ - FlushDirCache(); + FILEMAN->FlushDirCache( Dirname(f.GetRealPath()) ); LOG->Trace( "Steps::WriteDWINotesTag" );