mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 11:55:38 +00:00
Do not allow loading save states via commandline in Hardcore mode
This commit is contained in:
parent
d52b0e5dbb
commit
7d8f3d26a6
|
@ -174,6 +174,11 @@ bool CommonHostInterface::BootSystem(std::shared_ptr<SystemBootParameters> param
|
||||||
if (m_display && m_fullscreen_ui_enabled)
|
if (m_display && m_fullscreen_ui_enabled)
|
||||||
FullscreenUI::EnsureGameListLoaded();
|
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);
|
ApplyRendererFromGameSettings(parameters->filename);
|
||||||
|
|
||||||
if (!HostInterface::BootSystem(parameters))
|
if (!HostInterface::BootSystem(parameters))
|
||||||
|
|
Loading…
Reference in a new issue