mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-31 03:45:38 +00:00
Pad: Don't backup card state unconditionally
This commit is contained in:
parent
d7372d2442
commit
3bbce19df2
|
@ -798,7 +798,7 @@ void Pad::DoTransfer(TickCount ticks_late)
|
|||
const u32 frame_number = System::GetFrameNumber();
|
||||
|
||||
// consider u32 overflow case
|
||||
if ((frame_number - s_last_memory_card_transfer_frame) > GetMaximumRollbackFrames())
|
||||
if (ShouldAvoidSavingToState() && (frame_number - s_last_memory_card_transfer_frame) > GetMaximumRollbackFrames())
|
||||
BackupMemoryCardState();
|
||||
|
||||
s_last_memory_card_transfer_frame = frame_number;
|
||||
|
|
Loading…
Reference in a new issue