Merge pull request #14150 from unknownbrackets/dialog

Dialog: Clear volatile memory on unlock
This commit is contained in:
Henrik Rydgård 2021-02-15 23:37:55 +01:00 committed by GitHub
commit 71b1c9dfea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {
@ -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) {