Permalink
Browse files

Core/GCMemcard: Fix checksums after modifying the memcard

  • Loading branch information...
spycrab committed May 12, 2018
1 parent 229c92d commit b094cda92944d1de3817fb0130a2b0247b9d308d
Showing with 5 additions and 0 deletions.
  1. +5 −0 Source/Core/Core/HW/GCMemcard/GCMemcard.cpp
@@ -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);
}
}

0 comments on commit b094cda

Please sign in to comment.