Add new Sorting Capabilities for Profile list
This commit is contained in:
@@ -834,6 +834,20 @@ void GameState::FinishStage()
|
||||
{
|
||||
Profile* pProfile = PROFILEMAN->GetProfile(p);
|
||||
pProfile->m_iCurrentCombo = STATSMAN->m_CurStageStats.m_player[p].m_iCurCombo;
|
||||
//If the sort order is Recent, move the profile to the top of the list.
|
||||
if (PREFSMAN->m_ProfileSortOrder == ProfileSortOrder_Recent && PROFILEMAN->IsPersistentProfile(p))
|
||||
{
|
||||
int numLocalProfiles = PROFILEMAN->GetNumLocalProfiles();
|
||||
for (int i = 0; i < numLocalProfiles; i++)
|
||||
{
|
||||
Profile *profile = PROFILEMAN->GetLocalProfileFromIndex(i);
|
||||
if (profile->m_sGuid == pProfile->m_sGuid)
|
||||
{
|
||||
PROFILEMAN->MoveProfileTopBottom(i, PREFSMAN->m_bProfileSortOrderAscending);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( m_bDemonstrationOrJukebox )
|
||||
|
||||
Reference in New Issue
Block a user