mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-21 17:49:58 -05:00
Merge 851c555c90 into 12935d5b25
This commit is contained in:
commit
7c74816fc0
|
|
@ -11,6 +11,7 @@
|
|||
#include <map>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <utility>
|
||||
|
|
@ -249,9 +250,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