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.
This commit is contained in:
Admiral H. Curtiss 2015-08-22 16:27:29 +02:00
parent 9e97742a95
commit 5ffc6e0558
1 changed files with 5 additions and 0 deletions

View File

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