diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp index 2736ab68c3..16574d897e 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriverThreaded_Windows.cpp @@ -92,6 +92,8 @@ static bool IsFloppyDrive( const RString &sDrive ) void MemoryCardDriverThreaded_Windows::GetUSBStorageDevices( vector& vDevicesOut ) { + LOG->Trace( "MemoryCardDriverThreaded_Windows::GetUSBStorageDevices" ); + DWORD dwLogicalDrives = ::GetLogicalDrives(); m_dwLastLogicalDrives = dwLogicalDrives; @@ -103,15 +105,27 @@ void MemoryCardDriverThreaded_Windows::GetUSBStorageDevices( vectorTrace( sDrive ); + if( IsFloppyDrive(sDrive) ) + { + LOG->Trace( "IsFloppyDrive" ); continue; + } if( GetDriveType(sDrive + "\\") != DRIVE_REMOVABLE ) // is a removable drive - continue; + { + LOG->Trace( "not DRIVE_REMOVABLE" ); + continue; + } RString sVolumeLabel; if( !TestReady(sDrive + "\\", sVolumeLabel) ) - continue; + { + LOG->Trace( "not TestReady" ); + continue; + } vDevicesOut.push_back( UsbStorageDevice() ); UsbStorageDevice &usbd = vDevicesOut.back();