From a4825393d8a994a69a9b10f8c58e759cc098be51 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 24 Jan 2004 20:18:06 +0000 Subject: [PATCH] Song::RevertFromDisk: flush first, don't fast load --- stepmania/src/Song.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index c433f6f8c3..032bb51e7a 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -301,8 +301,14 @@ void Song::RevertFromDisk() /* Erase all existing data. */ Reset(); + FILEMAN->FlushDirCache( dir ); + + const bool OldVal = PREFSMAN->m_bFastLoad; + PREFSMAN->m_bFastLoad = false; + LoadFromSongDir( dir ); + PREFSMAN->m_bFastLoad = OldVal; if( GAMESTATE->m_pCurSong == this ) {