mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 15:59:23 +01:00
IOS/ES: Fix title ordering
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.
This commit is contained in:
parent
68fef47aef
commit
e1990e2645
@ -6,6 +6,7 @@
|
|||||||
#include <array>
|
#include <array>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <cinttypes>
|
#include <cinttypes>
|
||||||
|
#include <functional>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_set>
|
#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;
|
return title_ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user