UI: Only allow relative memcard files in memcard interface

This commit is contained in:
refractionpcsx2 2023-08-07 15:23:04 +01:00
parent 56b706f25e
commit 023e4774a1
1 changed files with 5 additions and 0 deletions

View File

@ -888,6 +888,11 @@ std::vector<AvailableMcdInfo> FileMcd_GetAvailableCards(bool include_in_use_card
continue; continue;
} }
// We only want relevant file types.
if (!(StringUtil::EndsWith(fd.FileName, ".ps2") || StringUtil::EndsWith(fd.FileName, ".mcr") ||
StringUtil::EndsWith(fd.FileName, ".mcd") || StringUtil::EndsWith(fd.FileName, ".bin")))
continue;
if (fd.Attributes & FILESYSTEM_FILE_ATTRIBUTE_DIRECTORY) if (fd.Attributes & FILESYSTEM_FILE_ATTRIBUTE_DIRECTORY)
{ {
if (!IsMemoryCardFolder(fd.FileName)) if (!IsMemoryCardFolder(fd.FileName))