From 90980b048d427b6e591745dda1a987777aca4615 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 30 Dec 2003 03:59:49 +0000 Subject: [PATCH] save to cache, so we don't have to special case RevertFromDisk --- stepmania/src/Song.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 8825f4ea4a..df4916f018 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -285,9 +285,7 @@ void Song::RevertFromDisk() /* Erase all existing data. */ Reset(); - // Don't load from cache, or else we'll get an old version - // if they've saved in the editor. - LoadFromSongDir( dir, false ); + LoadFromSongDir( dir ); if( GAMESTATE->m_pCurSong == this ) @@ -955,6 +953,7 @@ void Song::Save() SaveToSMFile( GetSongFilePath(), false ); SaveToDWIFile(); + SaveToCacheFile(); /* We've safely written our files and created backups. Rename non-SM and non-DWI * files to avoid confusion.