From f9478959daf7e3ce26044749f97138b722824a9c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 7 Sep 2004 20:38:01 +0000 Subject: [PATCH] log SongManager::RevertFromDisk --- stepmania/src/SongManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index 3768be6432..35c4a9ce14 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -98,6 +98,7 @@ void SongManager::InitAll( LoadingWindow *ld ) if( ld ) ld->SetText( "Saving Catalog.xml ..." ); SaveCatalogXml(); + SaveCatalogXml(); } void SongManager::Reload( LoadingWindow *ld ) @@ -748,6 +749,10 @@ void SongManager::Invalidate( Song *pStaleSong ) * etc. which may cause hard-to-trace crashes down the line if we set them to NULL. */ void SongManager::RevertFromDisk( Song *pSong, bool bAllowNotesLoss ) { + /* Reverting from disk is brittle, and touches a lot of tricky and rarely- + * used code paths. If it's ever used during a game, log it. */ + LOG->MapLog( "RevertFromDisk", "Reverted \"%s\" from disk", pSong->GetTranslitMainTitle().c_str() ); + // Ugly: When we re-load the song, the Steps* will change. // Fix GAMESTATE->m_CurSteps, g_CurStageStats, g_vPlayedStageStats[] after reloading. /* XXX: This is very brittle. However, we must know about all globals uses of Steps*,