mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Dialog: Update by button flag consistently.
Always check for the flag to change in Update().
This commit is contained in:
1 parent
2d0252feb8
commit
fcc1abc7c3
9 files changed
+34
-44
No files matched your search
@@ -39,6 +39,23 @@ PSPDialog::PSPDialog(UtilityDialogType type) : dialogType_(type) {
|
||||
PSPDialog::~PSPDialog() {
|
||||
}
|
||||
|
||||
void PSPDialog::InitCommon() {
|
||||
UpdateCommon();
|
||||
}
|
||||
|
||||
void PSPDialog::UpdateCommon() {
|
||||
okButtonImg = ImageID("I_CIRCLE");
|
||||
cancelButtonImg = ImageID("I_CROSS");
|
||||
okButtonFlag = CTRL_CIRCLE;
|
||||
cancelButtonFlag = CTRL_CROSS;
|
||||
if (GetCommonParam() && GetCommonParam()->buttonSwap == 1) {
|
||||
okButtonImg = ImageID("I_CROSS");
|
||||
cancelButtonImg = ImageID("I_CIRCLE");
|
||||
okButtonFlag = CTRL_CROSS;
|
||||
cancelButtonFlag = CTRL_CIRCLE;
|
||||
}
|
||||
}
|
||||
|
||||
PSPDialog::DialogStatus PSPDialog::GetStatus() {
|
||||
if (pendingStatusTicks != 0 && CoreTiming::GetTicks() >= pendingStatusTicks) {
|
||||
bool changeAllowed = true;
|
||||
|
||||
Reference in new issue
Block a user