pass iTimeout
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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]; }
|
||||||
|
|||||||
Reference in New Issue
Block a user