minor cleanups
This commit is contained in:
@@ -19,11 +19,8 @@ MemoryCardDriverThreaded_Windows::~MemoryCardDriverThreaded_Windows()
|
||||
{
|
||||
}
|
||||
|
||||
typedef const CString& CCStringRef;
|
||||
|
||||
static bool TestReady( CCStringRef sDrive )
|
||||
static bool TestReady( const CString &sDrive )
|
||||
{
|
||||
// TODO: Use RageFileDirect here to detect ready state?
|
||||
TCHAR szVolumeNameBuffer[MAX_PATH];
|
||||
DWORD dwVolumeSerialNumber;
|
||||
DWORD dwMaximumComponentLength;
|
||||
@@ -41,10 +38,9 @@ static bool TestReady( CCStringRef sDrive )
|
||||
sizeof(szFileSystemNameBuffer) );
|
||||
}
|
||||
|
||||
static bool TestWrite( CCStringRef sDrive )
|
||||
static bool TestWrite( const CString &sDrive )
|
||||
{
|
||||
// Try to write a file.
|
||||
// TODO: Can we use RageFile for this?
|
||||
CString sFile = sDrive + "temp";
|
||||
FILE* fp = fopen( sFile, "w" );
|
||||
if( fp == NULL )
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "MemoryCardDriver.h"
|
||||
#include <windows.h>
|
||||
|
||||
class MemoryCardDriverThreaded_Windows : public MemoryCardDriver
|
||||
class MemoryCardDriverThreaded_Windows: public MemoryCardDriver
|
||||
{
|
||||
public:
|
||||
MemoryCardDriverThreaded_Windows();
|
||||
@@ -16,6 +16,7 @@ public:
|
||||
virtual void Flush( UsbStorageDevice* pDevice );
|
||||
virtual void Reset();
|
||||
|
||||
private:
|
||||
DWORD m_dwLastLogicalDrives;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user