mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-14 10:10:12 +01:00
MemoryCard: Add support to override the memory card filter string via GameIndex.dbf.
This commit is contained in:
1 parent
2ee1cb81dd
commit
98012f82aa
1 file changed
+7
-1
@@ -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())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user