MemoryCardFolder: Fix empty/unplugged card detecting as folder

This commit is contained in:
Connor McLaughlin 2022-06-06 22:47:53 +10:00 committed by refractionpcsx2
parent 3dc4aea053
commit cf07f4aef1
1 changed files with 5 additions and 1 deletions

View File

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