Fix a bunch of cases where we forgot to check for chd files

This commit is contained in:
Henrik Rydgård
2024-03-13 09:31:31 +01:00
parent a0aaab9c47
commit 55974f61ad
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -830,7 +830,7 @@ std::vector<PSPFileInfo> DirectoryFileSystem::GetDirListing(const std::string &p
entry.name = file.name;
}
if (hideISOFiles) {
if (endsWithNoCase(entry.name, ".cso") || endsWithNoCase(entry.name, ".iso")) {
if (endsWithNoCase(entry.name, ".cso") || endsWithNoCase(entry.name, ".iso") || endsWithNoCase(entry.name, ".chd")) { // chd not really necessary, but let's hide them too.
// Workaround for DJ Max Portable, see compat.ini.
continue;
} else if (file.isDirectory) {