move common high-level device checking logic into base class:

- report STATE_CHECKING when a device is first seen, so "checking" shows up quickly
 - read quick profile data once bMount is true
This commit is contained in:
Glenn Maynard
2005-12-10 02:07:30 +00:00
parent bd6b59df43
commit 39535c11e5
4 changed files with 119 additions and 109 deletions
@@ -10,7 +10,6 @@ public:
MemoryCardDriverThreaded_Windows();
virtual ~MemoryCardDriverThreaded_Windows();
virtual bool DoOneUpdate( bool bMount, vector<UsbStorageDevice>& vStorageDevicesOut );
virtual bool Mount( UsbStorageDevice* pDevice );
virtual void Unmount( UsbStorageDevice* pDevice );
virtual void Flush( UsbStorageDevice* pDevice );
@@ -18,10 +17,10 @@ public:
private:
void GetUSBStorageDevices( vector<UsbStorageDevice>& vDevicesOut );
bool NeedUpdate( bool bMount );
bool USBStorageDevicesChanged();
bool TestWrite( UsbStorageDevice* pDevice );
DWORD m_dwLastLogicalDrives;
vector<UsbStorageDevice> m_vDevicesLastSeen;
};
#ifdef ARCH_MEMORY_CARD_DRIVER