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
+9
View File
@@ -1014,6 +1014,15 @@ void Profile::LoadEditableDataFromDir( CString sDir )
CLAMP( m_iWeightPounds, 50, 500 );
}
CString Profile::FastLoadProfileNameFromMemoryCard( CString sDir )
{
CString sProfileDir = sDir + PREFSMAN->m_sMemoryCardProfileSubdir + '/';
Profile profile;
profile.LoadEditableDataFromDir( sProfileDir );
return profile.GetDisplayName();
}
void Profile::LoadGeneralDataFromNode( const XNode* pNode )
{
ASSERT( pNode->m_sName == "GeneralData" );