move FastLoadProfileNameFromMemoryCard into ProfileManager

This commit is contained in:
Glenn Maynard
2005-04-24 23:06:15 +00:00
parent 9928ed6bde
commit 1ea1ecfaaf
6 changed files with 16 additions and 15 deletions
+11
View File
@@ -196,6 +196,17 @@ bool ProfileManager::LoadFirstAvailableProfile( PlayerNumber pn )
return false;
}
bool ProfileManager::FastLoadProfileNameFromMemoryCard( CString sRootDir, CString &sName ) const
{
CString sProfileDir = sRootDir + PREFSMAN->m_sMemoryCardProfileSubdir + '/';
Profile profile;
profile.LoadEditableDataFromDir( sProfileDir );
sName = profile.GetDisplayName();
return true;
}
void ProfileManager::SaveAllProfiles() const
{
this->SaveMachineProfile();