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. */ /* Erase all existing data. */
Reset(); Reset();
// Don't load from cache, or else we'll get an old version LoadFromSongDir( dir );
// if they've saved in the editor.
LoadFromSongDir( dir, false );
if( GAMESTATE->m_pCurSong == this ) if( GAMESTATE->m_pCurSong == this )
@@ -955,6 +953,7 @@ void Song::Save()
SaveToSMFile( GetSongFilePath(), false ); SaveToSMFile( GetSongFilePath(), false );
SaveToDWIFile(); SaveToDWIFile();
SaveToCacheFile();
/* We've safely written our files and created backups. Rename non-SM and non-DWI /* We've safely written our files and created backups. Rename non-SM and non-DWI
* files to avoid confusion. * files to avoid confusion.