From b094cda92944d1de3817fb0130a2b0247b9d308d Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 12 May 2018 21:39:13 +0200 Subject: [PATCH] Core/GCMemcard: Fix checksums after modifying the memcard --- Source/Core/Core/HW/GCMemcard/GCMemcard.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp b/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp index b0acaf00bb..26439a8811 100644 --- a/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp +++ b/Source/Core/Core/HW/GCMemcard/GCMemcard.cpp @@ -727,6 +727,8 @@ u32 GCMemcard::ImportFile(const DEntry& direntry, std::vector& 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); } }