mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-29 05:36:36 +00:00
Core/GCMemcard: Fix checksums after modifying the memcard
This commit is contained in:
parent
229c92d0bf
commit
b094cda929
1 changed files with 5 additions and 0 deletions
|
@ -727,6 +727,8 @@ u32 GCMemcard::ImportFile(const DEntry& direntry, std::vector<GCMBlock>& saveBlo
|
||||||
PreviousBat = &bat;
|
PreviousBat = &bat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FixChecksums();
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -792,6 +794,8 @@ u32 GCMemcard::RemoveFile(u8 index) // index in the directory array
|
||||||
PreviousDir = &dir;
|
PreviousDir = &dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FixChecksums();
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -817,6 +821,7 @@ u32 GCMemcard::CopyFrom(const GCMemcard& source, u8 index)
|
||||||
case NOMEMCARD:
|
case NOMEMCARD:
|
||||||
return NOMEMCARD;
|
return NOMEMCARD;
|
||||||
default:
|
default:
|
||||||
|
FixChecksums();
|
||||||
return ImportFile(tempDEntry, saveData);
|
return ImportFile(tempDEntry, saveData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue