summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DirectoryBlob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DiscIO/DirectoryBlob.cpp')
-rw-r--r--Source/Core/DiscIO/DirectoryBlob.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp
index 7cd7e12def..b9e8b89dd4 100644
--- a/Source/Core/DiscIO/DirectoryBlob.cpp
+++ b/Source/Core/DiscIO/DirectoryBlob.cpp
@@ -624,16 +624,15 @@ void DirectoryBlobReader::SetWiiRegionData(const std::vector<u8>& wii_region_dat
void DirectoryBlobReader::SetPartitions(std::vector<PartitionWithType>&& partitions)
{
- std::sort(partitions.begin(), partitions.end(),
- [](const PartitionWithType& lhs, const PartitionWithType& rhs) {
- if (lhs.type == rhs.type)
- return lhs.partition.GetRootDirectory() < rhs.partition.GetRootDirectory();
-
- // Ascending sort by partition type, except Update (1) comes before before Game (0)
- return (lhs.type > PartitionType::Update || rhs.type > PartitionType::Update) ?
- lhs.type < rhs.type :
- lhs.type > rhs.type;
- });
+ std::ranges::sort(partitions, [](const PartitionWithType& lhs, const PartitionWithType& rhs) {
+ if (lhs.type == rhs.type)
+ return lhs.partition.GetRootDirectory() < rhs.partition.GetRootDirectory();
+
+ // Ascending sort by partition type, except Update (1) comes before before Game (0)
+ return (lhs.type > PartitionType::Update || rhs.type > PartitionType::Update) ?
+ lhs.type < rhs.type :
+ lhs.type > rhs.type;
+ });
u32 subtable_1_size = 0;
while (subtable_1_size < partitions.size() && subtable_1_size < 3 &&