GCMemcard: Let ImportFile() take a Savefile instead of a direntry and a vector of blocks.

This commit is contained in:
Admiral H. Curtiss 2020-08-01 14:17:00 +02:00
parent c95f3cbb61
commit daa76183ed
3 changed files with 10 additions and 9 deletions

View file

@ -503,8 +503,7 @@ void GCMemcardManager::ImportFiles(int slot, const std::vector<Memcard::Savefile
for (const Memcard::Savefile& savefile : savefiles)
{
std::vector<Memcard::GCMBlock> blocks(savefile.blocks);
const auto result = card->ImportFile(savefile.dir_entry, blocks);
const auto result = card->ImportFile(savefile);
// we've already checked everything that could realistically fail here, so this should only
// happen if the memory card data is corrupted in some way