add ProfileManager::GetPlayerName
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -85,6 +85,7 @@ public:
|
||||
|
||||
Profile* GetMachineProfile() { return &m_MachineProfile; }
|
||||
|
||||
CString GetPlayerName( PlayerNumber pn );
|
||||
bool IsUsingMemoryCard( PlayerNumber pn ) { return m_bUsingMemoryCard[pn]; }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user