mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-31 19:47:06 +01:00
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) <noreply@anthropic.com>
This commit is contained in:
1 parent
a897b95b75
commit
0eeaeef610
1 file changed
+4
-2
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user