From bae642b3d7f3602f987721508ee4046cecf06b09 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 24 Apr 2007 21:11:25 +0000 Subject: [PATCH] simplify --- stepmania/src/ScreenDebugOverlay.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/stepmania/src/ScreenDebugOverlay.cpp b/stepmania/src/ScreenDebugOverlay.cpp index 2b865d26da..3515b30ea2 100644 --- a/stepmania/src/ScreenDebugOverlay.cpp +++ b/stepmania/src/ScreenDebugOverlay.cpp @@ -820,20 +820,8 @@ class DebugLineWriteProfiles : public IDebugLine { // Also save bookkeeping and profile info for debugging // so we don't have to play through a whole song to get new output. - BOOKKEEPER->WriteToDisk(); - PROFILEMAN->SaveMachineProfile(); - FOREACH_PlayerNumber( p ) - { - if( !PROFILEMAN->IsPersistentProfile(p) ) - continue; - - bool bWasMemoryCard = PROFILEMAN->ProfileWasLoadedFromMemoryCard(p); - if( bWasMemoryCard ) - MEMCARDMAN->MountCard( p ); - PROFILEMAN->SaveProfile( p ); - if( bWasMemoryCard ) - MEMCARDMAN->UnmountCard( p ); - } + GAMESTATE->SaveLocalData(); + GAMESTATE->SaveProfiles(); IDebugLine::DoAndMakeSystemMessage( sMessageOut ); } };