From 0eeaeef6101ed0fc4138097560cc1fc07d6b4ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 22 Oct 2026 08:57:29 +0200 Subject: [PATCH] Pause: Don't offer Load State on a screenshot in hardcore mode The slot list already hides it. From the screenshot view, the load was refused, but the pause menu still closed. Co-Authored-By: Claude Opus 5.5 (1M context) --- UI/PauseScreen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/PauseScreen.cpp b/UI/PauseScreen.cpp index fc1c75d7d5..6a551370c1 100644 --- a/UI/PauseScreen.cpp +++ b/UI/PauseScreen.cpp @@ -133,8 +133,10 @@ protected: } grid->Add(new Choice(pa->T("Save State"), ImageID("I_FILE_SAVE")))->OnClick.Handle(this, &ScreenshotViewScreen::OnSaveState); - // We can unconditionally show the load state button, because you can only pop this dialog up if a state exists. - grid->Add(new Choice(pa->T("Load State"), ImageID("I_FOLDER_OPEN")))->OnClick.Handle(this, &ScreenshotViewScreen::OnLoadState); + // You can only pop this dialog up if a state exists. Hardcore mode doesn't allow loading, like in SaveSlotView. + if (!Achievements::HardcoreModeActive()) { + grid->Add(new Choice(pa->T("Load State"), ImageID("I_FOLDER_OPEN")))->OnClick.Handle(this, &ScreenshotViewScreen::OnLoadState); + } grid->Add(new Choice(di->T("Delete"), ImageID("I_TRASHCAN")))->OnClick.Handle(this, &ScreenshotViewScreen::OnDeleteState); if (undoButton) { grid->Add(undoButton)->OnClick.Handle(this, &ScreenshotViewScreen::OnUndoState);