when we MountCard, we must always UnmountCard
disable FlushAndReset. It doesn't fit well with the timeout scheme: we have separate timeouts, but FlushAndReset is global. I could enable the timeout separately for this, but the mount -o remount should probably just be part of Unmount and we don't have to reload usb-storage anymore ...
This commit is contained in:
@@ -359,10 +359,12 @@ void GameState::EndGame()
|
||||
if( !PROFILEMAN->IsUsingProfile(pn) )
|
||||
continue;
|
||||
|
||||
if( PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn) )
|
||||
bool bWasMemoryCard = PROFILEMAN->ProfileWasLoadedFromMemoryCard(pn);
|
||||
if( bWasMemoryCard )
|
||||
MEMCARDMAN->MountCard( pn );
|
||||
PROFILEMAN->SaveProfile( pn );
|
||||
MEMCARDMAN->UnmountCard( pn );
|
||||
if( bWasMemoryCard )
|
||||
MEMCARDMAN->UnmountCard( pn );
|
||||
|
||||
PROFILEMAN->UnloadProfile( pn );
|
||||
}
|
||||
@@ -371,7 +373,7 @@ void GameState::EndGame()
|
||||
|
||||
// Reset the USB storage device numbers -after- saving
|
||||
CHECKPOINT;
|
||||
MEMCARDMAN->FlushAndReset();
|
||||
// MEMCARDMAN->FlushAndReset();
|
||||
CHECKPOINT;
|
||||
|
||||
SONGMAN->FreeAllLoadedFromProfiles();
|
||||
|
||||
Reference in New Issue
Block a user