simplify
This commit is contained in:
@@ -820,20 +820,8 @@ class DebugLineWriteProfiles : public IDebugLine
|
|||||||
{
|
{
|
||||||
// Also save bookkeeping and profile info for debugging
|
// Also save bookkeeping and profile info for debugging
|
||||||
// so we don't have to play through a whole song to get new output.
|
// so we don't have to play through a whole song to get new output.
|
||||||
BOOKKEEPER->WriteToDisk();
|
GAMESTATE->SaveLocalData();
|
||||||
PROFILEMAN->SaveMachineProfile();
|
GAMESTATE->SaveProfiles();
|
||||||
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 );
|
|
||||||
}
|
|
||||||
IDebugLine::DoAndMakeSystemMessage( sMessageOut );
|
IDebugLine::DoAndMakeSystemMessage( sMessageOut );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user