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:
Glenn Maynard
2005-02-07 03:39:51 +00:00
parent bd516940b2
commit 4c0a55a295
+5 -3
View File
@@ -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();