System: Update per-game memory cards on load state

Prevents saves being written to incorrect card after loading.
This commit is contained in:
Connor McLaughlin 2020-05-27 00:41:56 +10:00
parent eb6b490c76
commit d2c7639dd8
1 changed files with 3 additions and 0 deletions

View File

@ -336,6 +336,9 @@ bool System::DoState(StateWrapper& sw)
}
UpdateRunningGame(media_filename.c_str(), media.get());
if (GetSettings().HasAnyPerGameMemoryCards())
UpdateMemoryCards();
m_cdrom->Reset();
if (media)
m_cdrom->InsertMedia(std::move(media));