From 2d63a484999c3032fd7c6f6a4d2d4b1f60a96604 Mon Sep 17 00:00:00 2001 From: Jas Laferriere Date: Tue, 30 Jul 2024 13:16:24 -0400 Subject: [PATCH] fix: prevent loading savestates when connected --- Source/Core/Core/State.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index 9e3afb32d2..11d04bd625 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include "Common/ChunkFile.h" #include "Common/CommonTypes.h" @@ -190,6 +191,10 @@ void LoadFromBuffer(std::vector& buffer) OSD::AddMessage("Loading savestates is disabled in multiplayer Netplay lobbies to prevent desyncs"); return; } + else if (IsOnline()) + { + return; // No loading states when online on slippi either + } bool wasUnpaused = Core::PauseAndLock(true); @@ -532,6 +537,10 @@ void LoadAs(const std::string& filename) OSD::AddMessage("Loading savestates is disabled in multiplayer Netplay lobbies to prevent desyncs"); return; } + else if (IsOnline()) + { + return; // No loading states when online on slippi either + } // Stop the core while we load the state bool wasUnpaused = Core::PauseAndLock(true);