Skip to content

Commit e64d00b

Browse files
committed
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
1 parent 9498206 commit e64d00b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

output/dll/octoshock.dll

1 KB
Binary file not shown.

psx/octoshock/psx/input/memcard.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ void InputDevice_Memcard::SyncState(bool isReader, EW::NewState *ns)
193193
//HOWEVER - we clear the dirty flag. that way, a user wont accidentally `clobber` his savestates when loading a state.
194194
//instead, the state will only be dirtied when the game actually modifies the contents
195195
NSS(card_data);
196-
dirty_count = 0;
196+
197+
if(isReader)
198+
dirty_count = 0;
197199
}
198200
//
199201
//int InputDevice_Memcard::StateAction(StateMem* sm, int load, int data_only, const char* section_name)

0 commit comments

Comments
 (0)