mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 00:44:46 +02:00
Core/GCMemcard: Fix checksums after modifying the memcard
This commit is contained in:
@@ -727,6 +727,8 @@ u32 GCMemcard::ImportFile(const DEntry& direntry, std::vector<GCMBlock>& saveBlo
|
||||
PreviousBat = &bat;
|
||||
}
|
||||
|
||||
FixChecksums();
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@@ -792,6 +794,8 @@ u32 GCMemcard::RemoveFile(u8 index) // index in the directory array
|
||||
PreviousDir = &dir;
|
||||
}
|
||||
|
||||
FixChecksums();
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
@@ -817,6 +821,7 @@ u32 GCMemcard::CopyFrom(const GCMemcard& source, u8 index)
|
||||
case NOMEMCARD:
|
||||
return NOMEMCARD;
|
||||
default:
|
||||
FixChecksums();
|
||||
return ImportFile(tempDEntry, saveData);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user