Only flush the directories of the NoteSkins in question.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#include "global.h"
|
#include "global.h"
|
||||||
#include "NoteSkinManager.h"
|
#include "NoteSkinManager.h"
|
||||||
|
#include "RageFileManager.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "RageException.h"
|
#include "RageException.h"
|
||||||
#include "GameState.h"
|
#include "GameState.h"
|
||||||
@@ -236,7 +237,8 @@ try_again:
|
|||||||
|
|
||||||
if( Dialog::AbortRetryIgnore(message) == Dialog::retry )
|
if( Dialog::AbortRetryIgnore(message) == Dialog::retry )
|
||||||
{
|
{
|
||||||
FlushDirCache();
|
FILEMAN->FlushDirCache( GetNoteSkinDir(m_sCurrentNoteSkin) );
|
||||||
|
FILEMAN->FlushDirCache( GAME_BASE_NOTESKIN_NAME );
|
||||||
g_PathCache.clear();
|
g_PathCache.clear();
|
||||||
goto try_again;
|
goto try_again;
|
||||||
}
|
}
|
||||||
@@ -270,7 +272,8 @@ try_again:
|
|||||||
|
|
||||||
if( Dialog::AbortRetryIgnore(message) == Dialog::retry )
|
if( Dialog::AbortRetryIgnore(message) == Dialog::retry )
|
||||||
{
|
{
|
||||||
FlushDirCache();
|
FILEMAN->FlushDirCache( GetNoteSkinDir(m_sCurrentNoteSkin) );
|
||||||
|
FILEMAN->FlushDirCache( GAME_BASE_NOTESKIN_NAME );
|
||||||
g_PathCache.clear();
|
g_PathCache.clear();
|
||||||
goto try_again;
|
goto try_again;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user