Merge pull request #5635 from leoetlino/title-ordering

IOS/ES: Fix title ordering
This commit is contained in:
shuffle2 2017-06-17 15:02:26 -07:00 committed by GitHub
commit a8b11fb1f5
1 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@
#include <array>
#include <cctype>
#include <cinttypes>
#include <functional>
#include <iterator>
#include <string>
#include <unordered_set>
@ -89,6 +90,12 @@ static std::vector<u64> GetTitlesInTitleOrImport(const std::string& titles_dir)
}
}
// On a real Wii, the title list is not in any particular order. However, because of how
// the flash filesystem works, titles such as 1-2 are *never* in the first position.
// We must keep this behaviour, or some versions of the System Menu may break.
std::sort(title_ids.begin(), title_ids.end(), std::greater<>());
return title_ids;
}