Skip to content

Commit d2c7639

Browse files
committed
System: Update per-game memory cards on load state
Prevents saves being written to incorrect card after loading.
1 parent eb6b490 commit d2c7639

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/system.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,9 @@ bool System::DoState(StateWrapper& sw)
336336
}
337337

338338
UpdateRunningGame(media_filename.c_str(), media.get());
339+
if (GetSettings().HasAnyPerGameMemoryCards())
340+
UpdateMemoryCards();
341+
339342
m_cdrom->Reset();
340343
if (media)
341344
m_cdrom->InsertMedia(std::move(media));

0 commit comments

Comments
 (0)