fix DebugLine_WriteProfiles

This commit is contained in:
Glenn Maynard
2005-06-15 23:54:59 +00:00
parent b48fa6fe04
commit c8ce010007
+12 -2
View File
@@ -11,6 +11,7 @@
#include "RageSoundManager.h" #include "RageSoundManager.h"
#include "GameSoundManager.h" #include "GameSoundManager.h"
#include "RageTextureManager.h" #include "RageTextureManager.h"
#include "MemoryCardManager.h"
#include "NoteSkinManager.h" #include "NoteSkinManager.h"
#include "Bookkeeper.h" #include "Bookkeeper.h"
#include "ProfileManager.h" #include "ProfileManager.h"
@@ -427,8 +428,17 @@ bool ScreenDebugOverlay::OverlayInput( const DeviceInput& DeviceI, const InputEv
BOOKKEEPER->WriteToDisk(); BOOKKEEPER->WriteToDisk();
PROFILEMAN->SaveMachineProfile(); PROFILEMAN->SaveMachineProfile();
FOREACH_PlayerNumber( p ) FOREACH_PlayerNumber( p )
if( PROFILEMAN->IsPersistentProfile(p) ) {
PROFILEMAN->SaveProfile( p ); if( !PROFILEMAN->IsPersistentProfile(p) )
continue;
bool bWasMemoryCard = PROFILEMAN->ProfileWasLoadedFromMemoryCard(p);
if( bWasMemoryCard )
MEMCARDMAN->MountCard( p );
PROFILEMAN->SaveProfile( p );
if( bWasMemoryCard )
MEMCARDMAN->UnmountCard( p );
}
break; break;
case DebugLine_WritePreferences: case DebugLine_WritePreferences:
PREFSMAN->SaveGlobalPrefsToDisk(); PREFSMAN->SaveGlobalPrefsToDisk();