From 1b35499f4e6cdf9448fb5c8419ac95fbf001cad8 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 16 Sep 2006 03:34:44 +0000 Subject: [PATCH] Only flush the directories of the NoteSkins in question. --- stepmania/src/NoteSkinManager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/NoteSkinManager.cpp b/stepmania/src/NoteSkinManager.cpp index a0f76ab372..1e96d3b3fb 100644 --- a/stepmania/src/NoteSkinManager.cpp +++ b/stepmania/src/NoteSkinManager.cpp @@ -1,5 +1,6 @@ #include "global.h" #include "NoteSkinManager.h" +#include "RageFileManager.h" #include "RageLog.h" #include "RageException.h" #include "GameState.h" @@ -236,7 +237,8 @@ try_again: if( Dialog::AbortRetryIgnore(message) == Dialog::retry ) { - FlushDirCache(); + FILEMAN->FlushDirCache( GetNoteSkinDir(m_sCurrentNoteSkin) ); + FILEMAN->FlushDirCache( GAME_BASE_NOTESKIN_NAME ); g_PathCache.clear(); goto try_again; } @@ -270,7 +272,8 @@ try_again: if( Dialog::AbortRetryIgnore(message) == Dialog::retry ) { - FlushDirCache(); + FILEMAN->FlushDirCache( GetNoteSkinDir(m_sCurrentNoteSkin) ); + FILEMAN->FlushDirCache( GAME_BASE_NOTESKIN_NAME ); g_PathCache.clear(); goto try_again; }