add ProfileManager::GetPlayerName

This commit is contained in:
Glenn Maynard
2003-12-17 09:42:31 +00:00
parent e6b64e5536
commit 7483c0ae54
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -232,6 +232,16 @@ Profile* ProfileManager::GetProfile( PlayerNumber pn )
return &m_Profile[pn];
}
CString ProfileManager::GetPlayerName( PlayerNumber pn )
{
Profile *prof = ProfileManager::GetProfile( pn );
if( prof )
return prof->m_sLastUsedHighScoreName;
const char *names[NUM_PLAYERS] = { "PLAYER 1", "PLAYER 2" };
return names[pn];
}
bool Profile::LoadFromIni( CString sIniPath )
{
Init();