mirror of https://github.com/PCSX2/pcsx2.git
FolderMemoryCard: Remember filter so it can be reapplied when memory cards are changed while game is running.
This commit is contained in:
parent
02ae12c555
commit
b4b55289d6
|
@ -1025,7 +1025,7 @@ FolderMemoryCardAggregator::FolderMemoryCardAggregator() {
|
|||
|
||||
void FolderMemoryCardAggregator::Open() {
|
||||
for ( int i = 0; i < totalCardSlots; ++i ) {
|
||||
m_cards[i].Open();
|
||||
m_cards[i].Open( m_lastKnownFilter );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1071,5 +1071,6 @@ void FolderMemoryCardAggregator::ReIndex( uint slot, const wxString& filter ) {
|
|||
m_cards[slot].Close();
|
||||
Console.WriteLn( Color_Green, L"(FolderMcd) Re-Indexing slot %u with filter \"%s\"", slot, WX_STR( filter ) );
|
||||
m_cards[slot].Open( filter );
|
||||
m_lastKnownFilter = filter;
|
||||
}
|
||||
|
||||
|
|
|
@ -298,6 +298,7 @@ class FolderMemoryCardAggregator {
|
|||
protected:
|
||||
static const int totalCardSlots = 8;
|
||||
FolderMemoryCard m_cards[totalCardSlots];
|
||||
wxString m_lastKnownFilter = L"";
|
||||
|
||||
public:
|
||||
FolderMemoryCardAggregator();
|
||||
|
|
Loading…
Reference in New Issue