mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Dialog: Clear volatile memory on unlock.
Approximates firmware behavior.
This commit is contained in:
1 parent
5d62610a93
commit
d2348897cb
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user