VMManager: Fix per-game memory cards getting ejected on boot

This commit is contained in:
Connor McLaughlin 2022-09-19 22:59:31 +10:00 committed by refractionpcsx2
parent 5db2bef7b0
commit d5e8fadc64
1 changed files with 6 additions and 1 deletions

View File

@ -681,7 +681,12 @@ void VMManager::UpdateRunningGame(bool resetting, bool game_starting)
UpdateGameSettingsLayer();
ApplySettings();
// check this here, for two cases: dynarec on, and when enable cheats is set per-game.
// Clear the memory card eject notification again when booting for the first time, or starting.
// Otherwise, games think the card was removed on boot.
if (game_starting || resetting)
ClearMcdEjectTimeoutNow();
// Check this here, for two cases: dynarec on, and when enable cheats is set per-game.
if (s_patches_crc != s_game_crc)
ReloadPatches(game_starting, false);