Process msgdialog abort on Update().

Matches tests.
This commit is contained in:
Unknown W. Brackets 2014-09-27 00:13:11 -07:00
parent 265094f614
commit 00491bb33b
2 changed files with 5 additions and 3 deletions

View file

@ -218,7 +218,7 @@ int PSPMsgDialog::Update(int animSpeed) {
return SCE_ERROR_UTILITY_INVALID_STATUS;
}
if ((flag & DS_ERROR)) {
if (flag & (DS_ERROR | DS_ABORT)) {
ChangeStatus(SCE_UTILITY_STATUS_FINISHED, 0);
} else {
UpdateButtons();
@ -290,7 +290,8 @@ int PSPMsgDialog::Abort() {
if (GetStatus() != SCE_UTILITY_STATUS_RUNNING) {
return SCE_ERROR_UTILITY_INVALID_STATUS;
} else {
ChangeStatus(SCE_UTILITY_STATUS_FINISHED, 0);
// Status is not actually changed until Update().
flag |= DS_ABORT;
return 0;
}
}

View file

@ -85,7 +85,8 @@ private :
DS_VALIDBUTTON = 0x20,
DS_CANCELBUTTON = 0x40,
DS_NOSOUND = 0x80,
DS_ERROR = 0x100
DS_ERROR = 0x100,
DS_ABORT = 0x200,
};
u32 flag;