Netplay: Fix desync due to card reads

This commit is contained in:
Stenzek 2023-05-11 00:47:48 +10:00
parent abc78936e7
commit 3c8e6fd66f
1 changed files with 5 additions and 0 deletions

View File

@ -153,6 +153,8 @@ void Pad::Reset()
{
SoftReset();
s_last_memory_card_transfer_frame = 0;
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
{
if (s_controllers[i])
@ -469,6 +471,9 @@ bool Pad::DoState(StateWrapper& sw, bool is_memory_state)
}
else
{
if (sw.IsReading())
s_last_memory_card_transfer_frame = 0;
for (u32 i = 0; i < NUM_CONTROLLER_AND_CARD_PORTS; i++)
{
if ((sw.GetVersion() < 50) && (i >= 2))