From d279f61d0bf7f387d3395afd4af99cedbd4bf475 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 23 May 2022 20:03:36 +1000 Subject: [PATCH] VMManager: Clear memory card eject timeout when game starts If we don't reset the timer here, when using folder memcards the reindex will cause an eject, which a bunch of games don't like since they access the memory card on boot. --- pcsx2/VMManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcsx2/VMManager.cpp b/pcsx2/VMManager.cpp index 5aa899494a..a61e1bf448 100644 --- a/pcsx2/VMManager.cpp +++ b/pcsx2/VMManager.cpp @@ -1165,6 +1165,10 @@ void VMManager::Internal::GameStartingOnCPUThread() UpdateRunningGame(false); ApplyLoadedPatches(PPT_ONCE_ON_LOAD); ApplyLoadedPatches(PPT_COMBINED_0_1); + + // If we don't reset the timer here, when using folder memcards the reindex will cause an eject, + // which a bunch of games don't like since they access the memory card on boot. + ClearMcdEjectTimeoutNow(); } void VMManager::Internal::VSyncOnCPUThread()