pass iTimeout

This commit is contained in:
Glenn Maynard
2006-07-09 19:49:14 +00:00
parent ffb0e0d930
commit 580b21d0d3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -605,11 +605,11 @@ bool MemoryCardManager::MountCard( PlayerNumber pn, int iTimeout )
/* Temporarily mount a specific card. On unmount, the device will be reverted. This is used /* Temporarily mount a specific card. On unmount, the device will be reverted. This is used
* to access cards in the editor. */ * to access cards in the editor. */
bool MemoryCardManager::MountCard( PlayerNumber pn, const UsbStorageDevice &d ) bool MemoryCardManager::MountCard( PlayerNumber pn, const UsbStorageDevice &d, int iTimeout )
{ {
m_Device[pn] = d; m_Device[pn] = d;
CheckStateChanges(); CheckStateChanges();
return MountCard( pn ); return MountCard( pn, iTimeout );
} }
/* Called when finished accessing a memory card. If writes have been performed, /* Called when finished accessing a memory card. If writes have been performed,
+1 -1
View File
@@ -24,7 +24,7 @@ public:
void LockCards(); // prevent removing or changing of memory cards void LockCards(); // prevent removing or changing of memory cards
void UnlockCards(); void UnlockCards();
bool MountCard( PlayerNumber pn, int iTimeout = 10 ); bool MountCard( PlayerNumber pn, int iTimeout = 10 );
bool MountCard( PlayerNumber pn, const UsbStorageDevice &d ); bool MountCard( PlayerNumber pn, const UsbStorageDevice &d, int iTimeout = 10 );
void UnmountCard( PlayerNumber pn ); void UnmountCard( PlayerNumber pn );
bool IsMounted( PlayerNumber pn ) const { return m_bMounted[pn]; } bool IsMounted( PlayerNumber pn ) const { return m_bMounted[pn]; }