don't mount in LockCards; call MountAllUsedCards explicitly

This commit is contained in:
Glenn Maynard
2005-01-27 19:50:11 +00:00
parent 39b9a68473
commit 244633369b
2 changed files with 7 additions and 12 deletions
+5 -1
View File
@@ -108,6 +108,9 @@ void GameState::Reset()
{ {
EndGame(); EndGame();
/* Don't do the OS mount for cards during the attract screens. Only do OS mounts in
* the time between BeginGame and PlayersFinalized. XXX: I think we do that anyway,
* when m_bMemoryCardsMountOnlyWhenNecessary is true. Can we remove this? */
MEMCARDMAN->LockCards(); MEMCARDMAN->LockCards();
ASSERT( THEME ); ASSERT( THEME );
@@ -227,7 +230,8 @@ void GameState::PlayersFinalized()
m_bPlayersFinalized = true; m_bPlayersFinalized = true;
MEMCARDMAN->PauseMountingThread(); MEMCARDMAN->PauseMountingThread();
MEMCARDMAN->LockCards(); // this does a mount MEMCARDMAN->LockCards();
MEMCARDMAN->TryMountAllCards();
// apply saved default modifiers if any // apply saved default modifiers if any
FOREACH_HumanPlayer( pn ) FOREACH_HumanPlayer( pn )
+2 -11
View File
@@ -219,16 +219,6 @@ void MemoryCardManager::LockCards()
return; return;
m_bCardsLocked = true; m_bCardsLocked = true;
LOG->Trace( "do the final mount" );
FOREACH_EnabledPlayer( p )
{
if( m_Device[p].IsBlank() ) // they don't have an assigned card
continue;
MountCard( p );
}
} }
void MemoryCardManager::UnlockCards() void MemoryCardManager::UnlockCards()
@@ -243,7 +233,8 @@ void MemoryCardManager::UnlockCards()
} }
/* Used by TransferStatsFromMachine, TransferStatsToMachine. Should block. */ /* Used by TransferStatsFromMachine, TransferStatsToMachine, and PlayersFinalized()
* just before reading the profile. Should block. */
void MemoryCardManager::TryMountAllCards() void MemoryCardManager::TryMountAllCards()
{ {
FOREACH_EnabledPlayer( p ) FOREACH_EnabledPlayer( p )