mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
GCMemcard: Let ImportFile() take a Savefile instead of a direntry and a vector of blocks.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user