mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Process msgdialog abort on Update().
Matches tests.
This commit is contained in:
parent
265094f614
commit
00491bb33b
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue