Config: Fix folder memory cards initial load

This commit is contained in:
Connor McLaughlin 2021-10-02 19:46:59 +10:00 committed by refractionpcsx2
parent 3fdc32d9d7
commit d72c476483
1 changed files with 6 additions and 1 deletions

View File

@ -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;