mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
System: Update per-game memory cards on load state
Prevents saves being written to incorrect card after loading.
This commit is contained in:
parent
eb6b490c76
commit
d2c7639dd8
|
@ -336,6 +336,9 @@ bool System::DoState(StateWrapper& sw)
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateRunningGame(media_filename.c_str(), media.get());
|
UpdateRunningGame(media_filename.c_str(), media.get());
|
||||||
|
if (GetSettings().HasAnyPerGameMemoryCards())
|
||||||
|
UpdateMemoryCards();
|
||||||
|
|
||||||
m_cdrom->Reset();
|
m_cdrom->Reset();
|
||||||
if (media)
|
if (media)
|
||||||
m_cdrom->InsertMedia(std::move(media));
|
m_cdrom->InsertMedia(std::move(media));
|
||||||
|
|
Loading…
Reference in a new issue