From f5aa8fdd272128594497686d92d1dff034abcf31 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Dec 2005 02:21:11 +0000 Subject: [PATCH] comments --- stepmania/src/arch/MemoryCard/MemoryCardDriver.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stepmania/src/arch/MemoryCard/MemoryCardDriver.h b/stepmania/src/arch/MemoryCard/MemoryCardDriver.h index 10edbc95ac..e7b28cbd74 100644 --- a/stepmania/src/arch/MemoryCard/MemoryCardDriver.h +++ b/stepmania/src/arch/MemoryCard/MemoryCardDriver.h @@ -74,7 +74,10 @@ class MemoryCardDriver public: MemoryCardDriver() {}; virtual ~MemoryCardDriver() {}; - virtual bool Mount( UsbStorageDevice* pDevice ) = 0; // return false if mount or write fails + + /* Make a device accessible via its pDevice->sOsMountDir. This will be called + * before any access to the device, and before TestWrite. */ + virtual bool Mount( UsbStorageDevice* pDevice ) = 0; virtual void Unmount( UsbStorageDevice* pDevice ) = 0; virtual void Flush( UsbStorageDevice* pDevice ) = 0; virtual void Reset() { } @@ -89,8 +92,7 @@ protected: virtual bool USBStorageDevicesChanged() { return true; } virtual void GetUSBStorageDevices( vector& vDevicesOut ) { } - /* Mount(pDevice) will has been called successfully. Test the device. On - * failure, call pDevice->SetError() appropriately, and return false. */ + /* Test the device. On failure, call pDevice->SetError() appropriately, and return false. */ virtual bool TestWrite( UsbStorageDevice* pDevice ) { return true; } private: