mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
Don't allow resuming from Fullscreen UI when Hardcore mode is active
This commit is contained in:
parent
44da13358d
commit
283021f1a2
|
@ -541,8 +541,9 @@ static ImGuiFullscreen::FileSelectorFilters GetDiscImageFilters()
|
||||||
|
|
||||||
static void DoStartPath(const std::string& path, bool allow_resume)
|
static void DoStartPath(const std::string& path, bool allow_resume)
|
||||||
{
|
{
|
||||||
// we can never resume from exe/psf
|
// we can never resume from exe/psf, or when challenge mode is active
|
||||||
if (System::IsExeFileName(path.c_str()) || System::IsPsfFileName(path.c_str()))
|
if (System::IsExeFileName(path.c_str()) || System::IsPsfFileName(path.c_str()) ||
|
||||||
|
s_host_interface->IsCheevosChallengeModeActive())
|
||||||
allow_resume = false;
|
allow_resume = false;
|
||||||
|
|
||||||
if (allow_resume && g_settings.save_state_on_exit)
|
if (allow_resume && g_settings.save_state_on_exit)
|
||||||
|
|
Loading…
Reference in a new issue