pull out common memory card profile code (in prep for import handling)

This commit is contained in:
Glenn Maynard
2005-04-24 19:30:35 +00:00
parent 3a5de2fe67
commit e2ab509b8e
4 changed files with 12 additions and 12 deletions
@@ -238,14 +238,8 @@ bool MemoryCardDriverThreaded_Linux::DoOneUpdate( bool bMount, vector<UsbStorage
d.m_State = UsbStorageDevice::STATE_READY;
FILEMAN->Mount( "dir", d.sOsMountDir, TEMP_MOUNT_POINT );
Profile profile;
CString sProfileDir = TEMP_MOUNT_POINT + PREFSMAN->m_sMemoryCardProfileSubdir + '/';
profile.LoadEditableDataFromDir( sProfileDir );
d.sName = profile.GetDisplayName();
d.sName = Profile::FastLoadProfileNameFromMemoryCard( TEMP_MOUNT_POINT );
FILEMAN->Unmount( "dir", d.sOsMountDir, TEMP_MOUNT_POINT );
}
ExecuteCommand( "umount " + d.sOsMountDir );