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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user