Skip to content

Commit

Permalink
Merge pull request #14150 from unknownbrackets/dialog
Browse files Browse the repository at this point in the history
Dialog: Clear volatile memory on unlock
  • Loading branch information
hrydgard committed Feb 15, 2021
2 parents e1d73b2 + d234889 commit 71b1c9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Dialog/PSPDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PSPDialog::DialogStatus PSPDialog::GetStatus() {
bool changeAllowed = true;
if (pendingStatus == SCE_UTILITY_STATUS_NONE && status == SCE_UTILITY_STATUS_SHUTDOWN) {
if (volatileLocked_) {
KernelVolatileMemUnlock(0);
FinishVolatile();
volatileLocked_ = false;
}
} else if (pendingStatus == SCE_UTILITY_STATUS_RUNNING && status == SCE_UTILITY_STATUS_INITIALIZE) {
Expand Down Expand Up @@ -70,7 +70,7 @@ void PSPDialog::ChangeStatus(DialogStatus newStatus, int delayUs) {
if (delayUs <= 0) {
if (newStatus == SCE_UTILITY_STATUS_NONE && status == SCE_UTILITY_STATUS_SHUTDOWN) {
if (volatileLocked_) {
KernelVolatileMemUnlock(0);
FinishVolatile();
volatileLocked_ = false;
}
} else if (newStatus == SCE_UTILITY_STATUS_RUNNING && status == SCE_UTILITY_STATUS_INITIALIZE) {
Expand Down

0 comments on commit 71b1c9d

Please sign in to comment.