set NumTimesPlayed
This commit is contained in:
Glenn Maynard
2007-06-08 17:11:49 +00:00
parent dc156cc971
commit 7532b19031
3 changed files with 29 additions and 27 deletions
-18
View File
@@ -678,24 +678,6 @@ void ProfileManager::IncrementStepsPlayCount( const Song* pSong, const Steps* pS
GetMachineProfile()->IncrementStepsPlayCount( pSong, pSteps );
}
Grade ProfileManager::GetGradeForSteps( const Song *pSong, const Style *st, ProfileSlot slot, Difficulty dc ) const
{
const Steps* pSteps = SongUtil::GetStepsByDifficulty( pSong, st->m_StepsType, dc );
if( pSteps == NULL || !IsPersistentProfile(slot) )
return Grade_NoData;
return GetProfile(slot)->GetStepsHighScoreList(pSong, pSteps).HighGrade;
}
Grade ProfileManager::GetGradeForTrail( const Course *pCourse, const Style *st, ProfileSlot slot, Difficulty dc ) const
{
const Trail *pTrail = pCourse->GetTrail( st->m_StepsType, dc );
if( pTrail == NULL || !IsPersistentProfile(slot) )
return Grade_NoData;
return GetProfile( slot )->GetCourseHighScoreList( pCourse, pTrail ).HighGrade;
}
//
// Course stats
//