toggle desync notifications

This commit is contained in:
Jamie Meyer 2023-07-18 16:17:48 +02:00
parent bd4cf297ce
commit 19366460a5
No known key found for this signature in database
GPG Key ID: BF30D71B2F1305C7
1 changed files with 3 additions and 0 deletions

View File

@ -2324,6 +2324,9 @@ bool Netplay::NpOnEventCb(void* ctx, GGPOEvent* ev)
HandleTimeSyncEvent(ev->u.timesync.frames_ahead, ev->u.timesync.timeSyncPeriodInFrames);
break;
case GGPOEventCode::GGPO_EVENTCODE_DESYNC:
if (!send_desync_notifications)
return;
Host::OnNetplayMessage(fmt::format("Desync Detected: Current Frame: {}, Desync Frame: {}, Diff: {}, L:{}, R:{}",
CurrentFrame(), ev->u.desync.nFrameOfDesync,
CurrentFrame() - ev->u.desync.nFrameOfDesync, ev->u.desync.ourCheckSum,