From a876a8df5543327e5135b880b1daa72991f6ad0e Mon Sep 17 00:00:00 2001 From: Jamie Meyer <45072324+HeatXD@users.noreply.github.com> Date: Wed, 10 May 2023 13:25:18 +0200 Subject: [PATCH] Netplay: Only load netplay savestate whenever you are the host. the hostwill share state to the other peers. --- src/core/netplay.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/netplay.cpp b/src/core/netplay.cpp index 531e429b9..aa9728b17 100644 --- a/src/core/netplay.cpp +++ b/src/core/netplay.cpp @@ -1315,9 +1315,10 @@ void Netplay::StartNetplaySession(s32 local_handle, u16 local_port, std::string& Log_ErrorPrint("Failed to Create Netplay Session!"); System::ShutdownSystem(false); } - else + else if (IsHost()) { - // Load savestate if available + // Load savestate if available and only when you are the host. + // the other peers will get state from the host std::string save = EmuFolders::SaveStates + "/netplay/" + System::GetRunningSerial() + ".sav"; System::LoadState(save.c_str()); }