Add new Sorting Capabilities for Profile list

This commit is contained in:
Crash Cringle
2023-01-23 02:32:23 -05:00
committed by teejusb
parent 4e19ce0d5d
commit f60c1c7f82
15 changed files with 359 additions and 14 deletions
+7 -2
View File
@@ -885,7 +885,11 @@ static void InitializeConfOptions()
ADD( ConfOption( "MaxHighScoresPerListForMachine", MaxHighScoresPerListForMachine, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20") );
ADD( ConfOption( "MaxHighScoresPerListForPlayer", MaxHighScoresPerListForPlayer, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20") );
ADD( ConfOption( "MinTNSToHideNotes", MovePref<TapNoteScore>, "TNS_None", "TNS_HitMine", "TNS_AvoidMine", "TNS_CheckpointMiss", "TNS_Miss", "TNS_W5", "TNS_W4", "TNS_W3", "TNS_W2", "TNS_W1", "TNS_CheckpointHit"));
ADD( ConfOption( "ProfileSortOrderAscending", MovePref<bool>, "No", "Yes") );
g_ConfOptions.back().m_iEffects = OPT_APPLY_PROFILES;
ADD( ConfOption( "ProfileSortOrder", MovePref<ProfileSortOrder>, "Priority", "Recent", "Alphabetical") );
g_ConfOptions.back().m_sPrefName = "ProfileSortOrder";
g_ConfOptions.back().m_iEffects = OPT_APPLY_PROFILES;
// Graphic options
ADD( ConfOption( "Windowed", MovePref<bool>, "Full Screen", "Windowed" ) );
@@ -986,7 +990,8 @@ static const char *OptEffectNames[] = {
"ChangeGame",
"ApplySound",
"ApplySong",
"ApplyAspectRatio"
"ApplyAspectRatio",
"ApplyProfiles"
};
XToString( OptEffect );
StringToX( OptEffect );