minor cleanups
This commit is contained in:
@@ -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 )
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#include "MemoryCardDriver.h"
|
#include "MemoryCardDriver.h"
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
class MemoryCardDriverThreaded_Windows : public MemoryCardDriver
|
class MemoryCardDriverThreaded_Windows: public MemoryCardDriver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MemoryCardDriverThreaded_Windows();
|
MemoryCardDriverThreaded_Windows();
|
||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user