Revert alphabetization of game profiles in the video config dialog until I (or someone) has time to do it right.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7203 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Glenn Rice 2011-02-19 20:11:51 +00:00
parent e57406dbcc
commit 22dcfa4455
1 changed files with 2 additions and 5 deletions

View File

@ -186,16 +186,13 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
szr_basic->Add(profile_cb, 1, 0, 0);
profile_cb->AppendString(_("(Default)"));
wxArrayString arrayStringFor_GameNames;
for (int index = 0; ; ++index)
{
// TODO: Sort these alphabetically
const GameListItem* item = main_frame->GetGameListItem(index);
if (item == NULL) break;
arrayStringFor_GameNames.Add(wxString(item->GetName(0).c_str(), wxConvUTF8));
profile_cb->AppendString(wxString(item->GetName(0).c_str(), wxConvUTF8));
}
arrayStringFor_GameNames.Sort();
for (unsigned int index = 0; index < arrayStringFor_GameNames.GetCount(); ++index)
profile_cb->AppendString(arrayStringFor_GameNames[index]);
profile_cb->Select(cur_profile);
_connect_macro_(profile_cb, VideoConfigDiag::Event_OnProfileChange, wxEVT_COMMAND_CHOICE_SELECTED, this);