From 0644faa635286db6b7161be448e34b68c480a29b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 8 Apr 2021 11:34:15 +1000 Subject: [PATCH] System: Disable memory cards when running PSFs --- src/core/system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/system.cpp b/src/core/system.cpp index 2e1033849..78162699c 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -1769,9 +1769,14 @@ void ResetControllers() void UpdateMemoryCards() { + // Disable memory cards when running PSFs. + const bool is_running_psf = !s_running_game_path.empty() && IsPsfFileName(s_running_game_path.c_str()); + for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++) { g_pad.SetMemoryCard(i, nullptr); + if (is_running_psf) + continue; std::unique_ptr card; const MemoryCardType type = g_settings.memory_card_types[i];