allow GetProfile even if not using local profile or memory card
This commit is contained in:
@@ -268,10 +268,7 @@ const Profile* ProfileManager::GetProfile( PlayerNumber pn ) const
|
||||
{
|
||||
ASSERT( pn >= 0 && pn<NUM_PLAYERS );
|
||||
|
||||
if( m_sProfileDir[pn].empty() )
|
||||
return NULL;
|
||||
else
|
||||
return &m_Profile[pn];
|
||||
return &m_Profile[pn];
|
||||
}
|
||||
|
||||
CString ProfileManager::GetPlayerName( PlayerNumber pn ) const
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
|
||||
bool IsUsingProfile( PlayerNumber pn ) const { return !m_sProfileDir[pn].empty(); }
|
||||
bool IsUsingProfile( ProfileSlot slot ) const;
|
||||
const Profile* GetProfile( PlayerNumber pn ) const;
|
||||
const Profile* GetProfile( PlayerNumber pn ) const; // return a profile even if !IsUsingProfile
|
||||
Profile* GetProfile( PlayerNumber pn ) { return (Profile*) ((const ProfileManager *) this)->GetProfile(pn); }
|
||||
const Profile* GetProfile( ProfileSlot slot ) const;
|
||||
Profile* GetProfile( ProfileSlot slot ) { return (Profile*) ((const ProfileManager *) this)->GetProfile(slot); }
|
||||
|
||||
Reference in New Issue
Block a user