MemoryCard: Save FLAG to state

This commit is contained in:
Connor McLaughlin
2020-04-25 14:58:19 +10:00
parent 92255c8ddd
commit 25af5ef9d9
3 changed files with 4 additions and 3 deletions

View File

@ -26,6 +26,7 @@ void MemoryCard::Reset()
{
ResetTransferState();
SaveIfChanged(true);
m_FLAG.no_write_yet = true;
}
bool MemoryCard::DoState(StateWrapper& sw)
@ -34,6 +35,7 @@ bool MemoryCard::DoState(StateWrapper& sw)
SaveIfChanged(true);
sw.Do(&m_state);
sw.Do(&m_FLAG.bits);
sw.Do(&m_address);
sw.Do(&m_sector_offset);
sw.Do(&m_checksum);