System: Disable memory cards when running PSFs

This commit is contained in:
Connor McLaughlin 2021-04-08 11:34:15 +10:00
parent deeb861918
commit 0644faa635
1 changed files with 5 additions and 0 deletions

View File

@ -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<MemoryCard> card;
const MemoryCardType type = g_settings.memory_card_types[i];