Skip to content

Commit

Permalink
sceUtilityMsgDialogInitStart: also display Back button in V2 if no
Browse files Browse the repository at this point in the history
button specified in options.
  • Loading branch information
gid15 committed Sep 18, 2022
1 parent 0af7e8c commit 8b3695c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jpcsp/HLE/modules/sceUtility.java
Expand Up @@ -3978,6 +3978,9 @@ protected void updateDialog() {
if (msgDialogParams.base.totalSizeof() == SceUtilityMsgDialogParams.PSP_UTILITY_MSGDIALOG_SIZE_V3 && (msgDialogParams.options & SceUtilityMsgDialogParams.PSP_UTILITY_MSGDIALOG_OPTION_DISABLE_CANCEL) == SceUtilityMsgDialogParams.PSP_UTILITY_MSGDIALOG_OPTION_ENABLE_CANCEL) {
// Only display back button
drawBack();
} else if (msgDialogParams.base.totalSizeof() == SceUtilityMsgDialogParams.PSP_UTILITY_MSGDIALOG_SIZE_V2 && (msgDialogParams.options & SceUtilityMsgDialogParams.PSP_UTILITY_MSGDIALOG_OPTION_DISABLE_CANCEL) == SceUtilityMsgDialogParams.PSP_UTILITY_MSGDIALOG_OPTION_ENABLE_CANCEL) {
// Only display back button
drawBack();
} else {
// In this case, no buttons are displayed to the user.
// In the PSP the user waits a few seconds and the dialog closes itself.
Expand Down

0 comments on commit 8b3695c

Please sign in to comment.