mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
GCMemcardUtils: Make use of std::span where applicable
Generifies bits of the interface so that some functions aren't explicitly tied down to only using std::vector.
This commit is contained in:
parent
78f5c5f8d2
commit
1044bc40ca
4 changed files with 12 additions and 10 deletions
|
@ -502,7 +502,7 @@ void GCMemcardManager::ExportFiles(Memcard::SavefileFormat format)
|
|||
}
|
||||
}
|
||||
|
||||
void GCMemcardManager::ImportFiles(Slot slot, const std::vector<Memcard::Savefile>& savefiles)
|
||||
void GCMemcardManager::ImportFiles(Slot slot, std::span<const Memcard::Savefile> savefiles)
|
||||
{
|
||||
auto& card = m_slot_memcard[slot];
|
||||
if (!card)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue