From cf07f4aef1f6ed4d8383ed61088cf70f37a25d0e Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 6 Jun 2022 22:47:53 +1000 Subject: [PATCH] MemoryCardFolder: Fix empty/unplugged card detecting as folder --- pcsx2/MemoryCardFile.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcsx2/MemoryCardFile.cpp b/pcsx2/MemoryCardFile.cpp index cdebeff940..90b5c637dd 100644 --- a/pcsx2/MemoryCardFile.cpp +++ b/pcsx2/MemoryCardFile.cpp @@ -619,7 +619,11 @@ void FileMcd_EmuOpen() // detect inserted memory card types for (uint slot = 0; slot < 8; ++slot) { - if (EmuConfig.Mcd[slot].Enabled) + if (EmuConfig.Mcd[slot].Filename.empty()) + { + EmuConfig.Mcd[slot].Type = MemoryCardType::Empty; + } + else if (EmuConfig.Mcd[slot].Enabled) { MemoryCardType type = MemoryCardType::File; // default to file if we can't find anything at the path so it gets auto-generated