fix DebugLine_WriteProfiles
This commit is contained in:
@@ -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) )
|
{
|
||||||
|
if( !PROFILEMAN->IsPersistentProfile(p) )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
bool bWasMemoryCard = PROFILEMAN->ProfileWasLoadedFromMemoryCard(p);
|
||||||
|
if( bWasMemoryCard )
|
||||||
|
MEMCARDMAN->MountCard( p );
|
||||||
PROFILEMAN->SaveProfile( p );
|
PROFILEMAN->SaveProfile( p );
|
||||||
|
if( bWasMemoryCard )
|
||||||
|
MEMCARDMAN->UnmountCard( p );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DebugLine_WritePreferences:
|
case DebugLine_WritePreferences:
|
||||||
PREFSMAN->SaveGlobalPrefsToDisk();
|
PREFSMAN->SaveGlobalPrefsToDisk();
|
||||||
|
|||||||
Reference in New Issue
Block a user