fix: prevent loading savestates when connected

This commit is contained in:
Jas Laferriere 2024-07-30 13:59:29 -04:00
commit c3866f7e77

View file

@ -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<u8>& 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())
{