minor cleanups

This commit is contained in:
Glenn Maynard
2005-02-05 23:56:23 +00:00
parent 9f15f43462
commit bc3f8803c3
2 changed files with 4 additions and 7 deletions
@@ -19,11 +19,8 @@ MemoryCardDriverThreaded_Windows::~MemoryCardDriverThreaded_Windows()
{ {
} }
typedef const CString& CCStringRef; static bool TestReady( const CString &sDrive )
static bool TestReady( CCStringRef sDrive )
{ {
// TODO: Use RageFileDirect here to detect ready state?
TCHAR szVolumeNameBuffer[MAX_PATH]; TCHAR szVolumeNameBuffer[MAX_PATH];
DWORD dwVolumeSerialNumber; DWORD dwVolumeSerialNumber;
DWORD dwMaximumComponentLength; DWORD dwMaximumComponentLength;
@@ -41,10 +38,9 @@ static bool TestReady( CCStringRef sDrive )
sizeof(szFileSystemNameBuffer) ); sizeof(szFileSystemNameBuffer) );
} }
static bool TestWrite( CCStringRef sDrive ) static bool TestWrite( const CString &sDrive )
{ {
// Try to write a file. // Try to write a file.
// TODO: Can we use RageFile for this?
CString sFile = sDrive + "temp"; CString sFile = sDrive + "temp";
FILE* fp = fopen( sFile, "w" ); FILE* fp = fopen( sFile, "w" );
if( fp == NULL ) if( fp == NULL )
@@ -16,6 +16,7 @@ public:
virtual void Flush( UsbStorageDevice* pDevice ); virtual void Flush( UsbStorageDevice* pDevice );
virtual void Reset(); virtual void Reset();
private:
DWORD m_dwLastLogicalDrives; DWORD m_dwLastLogicalDrives;
}; };