mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 10:19:01 +00:00
fix: prevent loading savestates when connected
This commit is contained in:
parent
fb3ab25e57
commit
c3866f7e77
1 changed files with 11 additions and 0 deletions
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue