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

This commit is contained in:
Admiral H. Curtiss committed 2021-01-28 22:01:33 +01:00
1 parent c95f3cbb61
commit daa76183ed
3 files changed
+10 -9

No files matched your search

+1 -2
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