Do not allow loading save states via commandline in Hardcore mode

This commit is contained in:
Silent 2021-06-08 17:13:47 +02:00
parent d52b0e5dbb
commit 7d8f3d26a6
No known key found for this signature in database
GPG Key ID: AE53149BB0C45AF1
1 changed files with 5 additions and 0 deletions

View File

@ -174,6 +174,11 @@ bool CommonHostInterface::BootSystem(std::shared_ptr<SystemBootParameters> param
if (m_display && m_fullscreen_ui_enabled)
FullscreenUI::EnsureGameListLoaded();
// In Challenge mode, do not allow loading a save state under any circumstances
// If it's present, drop it
if (IsCheevosChallengeModeActive())
parameters->state_stream.reset();
ApplyRendererFromGameSettings(parameters->filename);
if (!HostInterface::BootSystem(parameters))