From f32f42678c77782e51ffdef7ae6a938fefcd5db5 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Mon, 25 May 2015 05:08:02 +0200 Subject: [PATCH] FolderMemoryCard: Filter only system data by default. This reduces memory card initialization time. Without this, it always indexes all files when the emulator boots, which can take a few seconds if you have lots of files. With this, the only file indexed is the PS2 "your system configuration" file. This has the side-effect of not being able to see save files in the PS2 BIOS unless you insert a game disc matching the files you want to see. I don't think this is a big problem, but there should probably be a "don't filter" option somewhere in case you want to manage files in the BIOS. --- pcsx2/gui/MemoryCardFolder.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/MemoryCardFolder.cpp b/pcsx2/gui/MemoryCardFolder.cpp index c1da434359..d6505828c9 100644 --- a/pcsx2/gui/MemoryCardFolder.cpp +++ b/pcsx2/gui/MemoryCardFolder.cpp @@ -298,6 +298,8 @@ bool FolderMemoryCard::AddFolder( MemoryCardFileEntry* const dirEntry, const wxS bool hasFilter = !filter.IsEmpty(); if ( hasFilter ) { localFilter = L"DATA-SYSTEM/" + filter; + } else { + localFilter = L"DATA-SYSTEM"; } int entryNumber = 2; // include . and .. @@ -319,7 +321,7 @@ bool FolderMemoryCard::AddFolder( MemoryCardFileEntry* const dirEntry, const wxS // if possible filter added directories by game serial // this has the effective result of only files relevant to the current game being loaded into the memory card // which means every game essentially sees the memory card as if no other files exist - if ( hasFilter && !FilterMatches( fileName, localFilter ) ) { + if ( !FilterMatches( fileName, localFilter ) ) { hasNext = dir.GetNext( &fileName ); continue; }