show a different string for "card inserted, but we don't yet know the name on the card"

This commit is contained in:
Chris Danford
2004-10-09 09:57:12 +00:00
parent 269768f856
commit f4f02e23a2
5 changed files with 14 additions and 2 deletions
@@ -17,6 +17,7 @@ struct UsbStorageDevice
sOsMountDir = "";
bNeedsWriteTest = true;
bWriteTestSucceeded = false;
bIsNameAvailable = false;
sName = "";
idVendor = 0;
idProduct = 0;
@@ -32,6 +33,7 @@ struct UsbStorageDevice
CString sOsMountDir; // WITHOUT trailing slash
bool bNeedsWriteTest;
bool bWriteTestSucceeded; // only valid if bNeedsWriteTest == false
bool bIsNameAvailable; // Name in the profile on the memory card.
CString sName; // Name in the profile on the memory card.
int idVendor;
int idProduct;
@@ -103,6 +103,7 @@ void MemoryCardDriverThreaded_Windows::MountThreadDoOneUpdate()
Profile profile;
CString sProfileDir = TEMP_MOUNT_POINT + PREFSMAN->m_sMemoryCardProfileSubdir + '/';
profile.LoadEditableDataFromDir( sProfileDir );
usbd.bIsNameAvailable = true;
usbd.sName = profile.GetDisplayName();
UnmountMountPoint( TEMP_MOUNT_POINT );