mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Merge 851c555c90 into ed2fe134aa
This commit is contained in:
commit
fc149a9a9b
@ -11,6 +11,7 @@
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
@ -250,9 +251,9 @@ bool VolumeWii::HasWiiEncryption() const
|
||||
|
||||
std::vector<Partition> VolumeWii::GetPartitions() const
|
||||
{
|
||||
std::vector<Partition> partitions;
|
||||
for (const auto& pair : m_partitions)
|
||||
partitions.push_back(pair.first);
|
||||
std::vector<Partition> partitions(m_partitions.size());
|
||||
const auto partitions_view = std::views::keys(m_partitions);
|
||||
std::ranges::copy(partitions_view, partitions.begin());
|
||||
return partitions;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user