mirror of https://github.com/PCSX2/pcsx2.git
UI: Only allow relative memcard files in memcard interface
This commit is contained in:
parent
56b706f25e
commit
023e4774a1
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue