mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 17:28:33 +00:00
GCMemcard: Let ImportFile() take a Savefile instead of a direntry and a vector of blocks.
This commit is contained in:
parent
c95f3cbb61
commit
daa76183ed
3 changed files with 10 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue