Merge pull request #2241 from CookiePLMonster/hardcore-mode-improvements-2

Don't allow resuming from Fullscreen UI when Hardcore mode is active
This commit is contained in:
Connor McLaughlin 2021-06-11 20:44:31 +10:00 committed by GitHub
commit 1e2bdc11e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -541,8 +541,9 @@ static ImGuiFullscreen::FileSelectorFilters GetDiscImageFilters()
static void DoStartPath(const std::string& path, bool allow_resume)
{
// we can never resume from exe/psf
if (System::IsExeFileName(path.c_str()) || System::IsPsfFileName(path.c_str()))
// we can never resume from exe/psf, or when challenge mode is active
if (System::IsExeFileName(path.c_str()) || System::IsPsfFileName(path.c_str()) ||
s_host_interface->IsCheevosChallengeModeActive())
allow_resume = false;
if (allow_resume && g_settings.save_state_on_exit)