Skip to content

Commit

Permalink
Merge pull request hrydgard#18881 from bslenul/crash-fix
Browse files Browse the repository at this point in the history
Crash fix for some games
  • Loading branch information
hrydgard authored Feb 23, 2024
2 parents 9c2096b + 133e9e3 commit d5cfccc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Dialog/PSPMsgDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,10 @@ int PSPMsgDialog::Update(int animSpeed) {
DisplayMessage(msgText, (flag & DS_YESNO) != 0, (flag & DS_OK) != 0);

if (flag & (DS_OK | DS_VALIDBUTTON))
DisplayButtons(DS_BUTTON_OK, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.okayButton : NULL);
DisplayButtons(DS_BUTTON_OK, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.okayButton : "");

if (flag & DS_CANCELBUTTON)
DisplayButtons(DS_BUTTON_CANCEL, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.cancelButton : NULL);
DisplayButtons(DS_BUTTON_CANCEL, messageDialog.common.size == SCE_UTILITY_MSGDIALOG_SIZE_V3 ? messageDialog.cancelButton : "");

if (IsButtonPressed(cancelButtonFlag) && (flag & DS_CANCELBUTTON))
{
Expand Down

0 comments on commit d5cfccc

Please sign in to comment.