From d72c4764835e0555c054bda561f9da4e250d1c0b Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 2 Oct 2021 19:46:59 +1000 Subject: [PATCH] Config: Fix folder memory cards initial load --- pcsx2/Pcsx2Config.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pcsx2/Pcsx2Config.cpp b/pcsx2/Pcsx2Config.cpp index 49faf9a8ea..298a67e0e6 100644 --- a/pcsx2/Pcsx2Config.cpp +++ b/pcsx2/Pcsx2Config.cpp @@ -622,7 +622,12 @@ void Pcsx2Config::CopyConfig(const Pcsx2Config& cfg) BaseFilenames = cfg.BaseFilenames; Framerate = cfg.Framerate; for (u32 i = 0; i < sizeof(Mcd) / sizeof(Mcd[0]); i++) - Mcd[i] = cfg.Mcd[i]; + { + // Type will be File here, even if it's a folder, so we preserve the old value. + // When the memory card is re-opened, it should redetect anyway. + Mcd[i].Enabled = cfg.Mcd[i].Enabled; + Mcd[i].Filename = cfg.Mcd[i].Filename; + } GzipIsoIndexTemplate = cfg.GzipIsoIndexTemplate;