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:
Lioncash
2023-06-08 12:49:35 -04:00
parent 78f5c5f8d2
commit 1044bc40ca
4 changed files with 12 additions and 10 deletions

View File

@ -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)