From 5ffc6e0558255b7aae2a049f897c500f158050dd Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 22 Aug 2015 16:27:29 +0200 Subject: [PATCH] FolderMemoryCard: Don't load files in the root dir when filtering. No official game stores files there. You can easily check this by putting any file in the root dir and loading the PS2 BIOS, which will show it as corrupted data with an unknown filesize. --- pcsx2/gui/MemoryCardFolder.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pcsx2/gui/MemoryCardFolder.cpp b/pcsx2/gui/MemoryCardFolder.cpp index 834ea796f3..b1e84f4d9e 100644 --- a/pcsx2/gui/MemoryCardFolder.cpp +++ b/pcsx2/gui/MemoryCardFolder.cpp @@ -316,6 +316,11 @@ bool FolderMemoryCard::AddFolder( MemoryCardFileEntry* const dirEntry, const wxS bool isFile = wxFile::Exists( fileInfo.GetFullPath() ); if ( isFile ) { + // don't load files in the root dir if we're filtering; no official software stores files there + if ( enableFiltering && parent == nullptr ) { + hasNext = dir.GetNext( &fileName ); + continue; + } if ( AddFile( dirEntry, dirPath, fileName, parent ) ) { ++entryNumber; }