mirror of https://github.com/PCSX2/pcsx2.git
MemoryCard: Add support to override the memory card filter string via GameIndex.dbf.
This commit is contained in:
parent
2ee1cb81dd
commit
98012f82aa
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue