add troubleshoot logging
This commit is contained in:
@@ -92,6 +92,8 @@ static bool IsFloppyDrive( const RString &sDrive )
|
|||||||
|
|
||||||
void MemoryCardDriverThreaded_Windows::GetUSBStorageDevices( vector<UsbStorageDevice>& vDevicesOut )
|
void MemoryCardDriverThreaded_Windows::GetUSBStorageDevices( vector<UsbStorageDevice>& vDevicesOut )
|
||||||
{
|
{
|
||||||
|
LOG->Trace( "MemoryCardDriverThreaded_Windows::GetUSBStorageDevices" );
|
||||||
|
|
||||||
DWORD dwLogicalDrives = ::GetLogicalDrives();
|
DWORD dwLogicalDrives = ::GetLogicalDrives();
|
||||||
m_dwLastLogicalDrives = dwLogicalDrives;
|
m_dwLastLogicalDrives = dwLogicalDrives;
|
||||||
|
|
||||||
@@ -103,15 +105,27 @@ void MemoryCardDriverThreaded_Windows::GetUSBStorageDevices( vector<UsbStorageDe
|
|||||||
continue; // drive letter is invalid
|
continue; // drive letter is invalid
|
||||||
|
|
||||||
RString sDrive = ssprintf( "%c:", 'A'+i%26 );
|
RString sDrive = ssprintf( "%c:", 'A'+i%26 );
|
||||||
|
|
||||||
|
LOG->Trace( sDrive );
|
||||||
|
|
||||||
if( IsFloppyDrive(sDrive) )
|
if( IsFloppyDrive(sDrive) )
|
||||||
|
{
|
||||||
|
LOG->Trace( "IsFloppyDrive" );
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if( GetDriveType(sDrive + "\\") != DRIVE_REMOVABLE ) // is a removable drive
|
if( GetDriveType(sDrive + "\\") != DRIVE_REMOVABLE ) // is a removable drive
|
||||||
|
{
|
||||||
|
LOG->Trace( "not DRIVE_REMOVABLE" );
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
RString sVolumeLabel;
|
RString sVolumeLabel;
|
||||||
if( !TestReady(sDrive + "\\", sVolumeLabel) )
|
if( !TestReady(sDrive + "\\", sVolumeLabel) )
|
||||||
|
{
|
||||||
|
LOG->Trace( "not TestReady" );
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
vDevicesOut.push_back( UsbStorageDevice() );
|
vDevicesOut.push_back( UsbStorageDevice() );
|
||||||
UsbStorageDevice &usbd = vDevicesOut.back();
|
UsbStorageDevice &usbd = vDevicesOut.back();
|
||||||
|
|||||||
Reference in New Issue
Block a user