From edf9f042930baa00317a3a9298a8d4dbb4230130 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 4 May 2006 00:24:54 +0000 Subject: [PATCH] add troubleshoot logging --- .../MemoryCardDriverThreaded_Windows.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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();