mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Reformat all the things!
This commit is contained in:
parent
d27e85e9d7
commit
40bb9974f2
179 changed files with 1888 additions and 991 deletions
|
@ -731,12 +731,13 @@ void DirectoryBlobPartition::WriteDirectory(const File::FSTEntry& parent_entry,
|
|||
std::vector<File::FSTEntry> sorted_entries = parent_entry.children;
|
||||
|
||||
// Sort for determinism
|
||||
std::sort(sorted_entries.begin(), sorted_entries.end(), [](const File::FSTEntry& one,
|
||||
const File::FSTEntry& two) {
|
||||
const std::string one_upper = ASCIIToUppercase(one.virtualName);
|
||||
const std::string two_upper = ASCIIToUppercase(two.virtualName);
|
||||
return one_upper == two_upper ? one.virtualName < two.virtualName : one_upper < two_upper;
|
||||
});
|
||||
std::sort(sorted_entries.begin(), sorted_entries.end(),
|
||||
[](const File::FSTEntry& one, const File::FSTEntry& two) {
|
||||
const std::string one_upper = ASCIIToUppercase(one.virtualName);
|
||||
const std::string two_upper = ASCIIToUppercase(two.virtualName);
|
||||
return one_upper == two_upper ? one.virtualName < two.virtualName :
|
||||
one_upper < two_upper;
|
||||
});
|
||||
|
||||
for (const File::FSTEntry& entry : sorted_entries)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue