interface to allow more specific error messages

This commit is contained in:
Glenn Maynard
2005-04-22 05:48:52 +00:00
parent 0d9b7c943a
commit 30c3578cdc
6 changed files with 27 additions and 15 deletions
@@ -89,7 +89,10 @@ bool MemoryCardDriverThreaded_Windows::DoOneUpdate( bool bMount, vector<UsbStora
UsbStorageDevice usbd;
usbd.SetOsMountDir( sDrive );
usbd.m_State = TestWrite( sDrive )? UsbStorageDevice::STATE_READY:UsbStorageDevice::STATE_ERROR;
if( TestWrite(sDrive) )
usbd.m_State = UsbStorageDevice::STATE_READY;
else
usbd.SetError( "MountFailed" );
// read name
this->Mount( &usbd );