diff --git a/stepmania/src/ProfileManager.cpp b/stepmania/src/ProfileManager.cpp index 432997c810..977036a84d 100644 --- a/stepmania/src/ProfileManager.cpp +++ b/stepmania/src/ProfileManager.cpp @@ -523,3 +523,18 @@ void ProfileManager::IncrementCategoryPlayCount( StepsType st, RankingCategory r PROFILEMAN->GetMachineProfile()->IncrementCategoryPlayCount( st, rc ); } +bool ProfileManager::IsUsingProfile( ProfileSlot slot ) const +{ + switch( slot ) + { + case PROFILE_SLOT_PLAYER_1: + case PROFILE_SLOT_PLAYER_2: + return GAMESTATE->IsHumanPlayer((PlayerNumber)slot) && !m_sProfileDir[slot].empty(); + case PROFILE_SLOT_MACHINE: + return true; + default: + ASSERT(0); + return false; + } +} + diff --git a/stepmania/src/ProfileManager.h b/stepmania/src/ProfileManager.h index f3b79db7e3..44a287c140 100644 --- a/stepmania/src/ProfileManager.h +++ b/stepmania/src/ProfileManager.h @@ -52,20 +52,7 @@ public: void SaveMachineProfile(); bool IsUsingProfile( PlayerNumber pn ) const { return !m_sProfileDir[pn].empty(); } - bool IsUsingProfile( ProfileSlot slot ) const - { - switch( slot ) - { - case PROFILE_SLOT_PLAYER_1: - case PROFILE_SLOT_PLAYER_2: - return !m_sProfileDir[slot].empty(); - case PROFILE_SLOT_MACHINE: - return true; - default: - ASSERT(0); - return false; - } - } + bool IsUsingProfile( ProfileSlot slot ) const; const Profile* GetProfile( PlayerNumber pn ) const; Profile* GetProfile( PlayerNumber pn ) { return (Profile*) ((const ProfileManager *) this)->GetProfile(pn); } const Profile* GetProfile( ProfileSlot slot ) const;