From 98012f82aa52a5d0042fc2cdd40d9051345bbd69 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sat, 23 May 2015 04:42:40 +0200 Subject: [PATCH] MemoryCard: Add support to override the memory card filter string via GameIndex.dbf. --- pcsx2/gui/AppCoreThread.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/AppCoreThread.cpp b/pcsx2/gui/AppCoreThread.cpp index 464c043823..f7b7a86887 100644 --- a/pcsx2/gui/AppCoreThread.cpp +++ b/pcsx2/gui/AppCoreThread.cpp @@ -345,6 +345,7 @@ void AppCoreThread::ApplySettings( const Pcsx2Config& src ) wxString gameName; wxString gameCompat; + wxString gameMemCardFilter; int numberLoadedCheats; int numberLoadedWideScreenPatches; @@ -369,6 +370,7 @@ void AppCoreThread::ApplySettings( const Pcsx2Config& src ) gameName = game.getString("Name"); gameName += L" (" + game.getString("Region") + L")"; gameCompat = L" [Status = "+compatToStringWX(compat)+L"]"; + gameMemCardFilter = game.getString("MemCardFilter"); } if (EmuConfig.EnablePatches) { @@ -383,7 +385,11 @@ void AppCoreThread::ApplySettings( const Pcsx2Config& src ) } } - sioSetGameSerial( curGameKey ); + if (!gameMemCardFilter.IsEmpty()) { + sioSetGameSerial(gameMemCardFilter); + } else { + sioSetGameSerial(curGameKey); + } if (gameName.IsEmpty() && gameSerial.IsEmpty() && gameCRC.IsEmpty()) {