show a different string for "card inserted, but we don't yet know the name on the card"
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user