Allow confirm to bypass save load dialogs.

This commit is contained in:
Unknown W. Brackets 2014-02-02 16:00:01 -08:00
parent 6c8f310322
commit 54e8f28743

View File

@ -762,7 +762,10 @@ int PSPSaveDialog::Update(int animSpeed)
DisplayButtons(DS_BUTTON_CANCEL);
DisplayBanner(DB_LOAD);
if (IsButtonPressed(cancelButtonFlag)) {
// Allow OK to be pressed as well to confirm the save.
// The PSP only allows cancel, but that's generally not great UX.
// Allowing this here makes it quicker for most users to get into the actual game.
if (IsButtonPressed(cancelButtonFlag) || IsButtonPressed(okButtonFlag)) {
param.GetPspParam()->common.result = SCE_UTILITY_DIALOG_RESULT_SUCCESS;
// Set the save to use for autosave and autoload
param.SetSelectedSave(param.GetFileInfo(currentSelectedSave).idx);