From c3866f7e7743554f29e1337d0083a3074c08e2ed Mon Sep 17 00:00:00 2001 From: Jas Laferriere Date: Tue, 30 Jul 2024 13:59:29 -0400 Subject: [PATCH] fix: prevent loading savestates when connected --- Source/Core/Core/State.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/Core/Core/State.cpp b/Source/Core/Core/State.cpp index c15dfd665b..313d425f78 100644 --- a/Source/Core/Core/State.cpp +++ b/Source/Core/Core/State.cpp @@ -46,6 +46,7 @@ #include "Core/Movie.h" #include "Core/NetPlayClient.h" #include "Core/PowerPC/PowerPC.h" +#include "Core/Slippi/SlippiNetplay.h" #include "Core/System.h" #include "VideoCommon/FrameDumpFFMpeg.h" @@ -210,6 +211,11 @@ void LoadFromBuffer(std::vector& buffer) return; } + if (IsOnline()) + { + return; + } + #ifdef USE_RETRO_ACHIEVEMENTS if (AchievementManager::GetInstance().IsHardcoreModeActive()) { @@ -847,6 +853,11 @@ void LoadAs(const std::string& filename) return; } + if (IsOnline()) + { + return; + } + #ifdef USE_RETRO_ACHIEVEMENTS if (AchievementManager::GetInstance().IsHardcoreModeActive()) {