save to cache, so we don't have to special case RevertFromDisk

This commit is contained in:
Glenn Maynard
2003-12-30 03:59:49 +00:00
parent 0bba86b5c3
commit 90980b048d
+2 -3
View File
@@ -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.