psx - fix bug where saving the state cleared the memcard dirty flags. not 100% sure we'll keep this logic, need to revisit it on the date of the great automatic-flushing-deprecation.

fixes #1031
This commit is contained in:
zeromus 2017-10-25 12:21:57 -04:00
parent 9498206980
commit e64d00bf7d
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -193,7 +193,9 @@ void InputDevice_Memcard::SyncState(bool isReader, EW::NewState *ns)
//HOWEVER - we clear the dirty flag. that way, a user wont accidentally `clobber` his savestates when loading a state.
//instead, the state will only be dirtied when the game actually modifies the contents
NSS(card_data);
dirty_count = 0;
if(isReader)
dirty_count = 0;
}
//
//int InputDevice_Memcard::StateAction(StateMem* sm, int load, int data_only, const char* section_name)