nudge closer to Windows driver
This commit is contained in:
@@ -167,9 +167,8 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vector<UsbStorage
|
||||
|
||||
vector<UsbStorageDevice> vOld = m_vDevicesLastSeen; // copy
|
||||
GetUSBStorageDevices( vStorageDevicesOut );
|
||||
vector<UsbStorageDevice> &vNew = vStorageDevicesOut;
|
||||
|
||||
// check for connects
|
||||
// log connects
|
||||
FOREACH( UsbStorageDevice, vNew, newd )
|
||||
{
|
||||
vector<UsbStorageDevice>::iterator iter = find( vOld.begin(), vOld.end(), *newd );
|
||||
@@ -206,8 +205,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vector<UsbStorage
|
||||
{
|
||||
if( !bMount )
|
||||
{
|
||||
/* We can't check it now. Keep the checking state and check it when
|
||||
* we can. */
|
||||
/* We can't check it now. Keep STATE_CHECKING, and check it when we can. */
|
||||
d.m_State = UsbStorageDevice::STATE_CHECKING;
|
||||
continue;
|
||||
}
|
||||
@@ -240,7 +238,7 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vector<UsbStorage
|
||||
}
|
||||
}
|
||||
|
||||
m_vDevicesLastSeen = vNew;
|
||||
m_vDevicesLastSeen = vStorageDevicesOut;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user