mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
9e97742a95
commit
5ffc6e0558
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue