pm: fix missing flag clears
This commit is contained in:
Submodule stratosphere/libstratosphere updated: 45700a12e8...ccfadc501b
@@ -470,11 +470,13 @@ namespace sts::pm::impl {
|
|||||||
for (size_t i = 0; i < list->GetSize(); i++) {
|
for (size_t i = 0; i < list->GetSize(); i++) {
|
||||||
auto process_info = list[i];
|
auto process_info = list[i];
|
||||||
if (process_info->HasStarted() && process_info->HasStartedStateChanged()) {
|
if (process_info->HasStarted() && process_info->HasStartedStateChanged()) {
|
||||||
|
process_info->ClearStartedStateChanged();
|
||||||
out->event = GetProcessEventValue(ProcessEvent::Started);
|
out->event = GetProcessEventValue(ProcessEvent::Started);
|
||||||
out->process_id = process_info->GetProcessId();
|
out->process_id = process_info->GetProcessId();
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
if (process_info->HasSuspendedStateChanged()) {
|
if (process_info->HasSuspendedStateChanged()) {
|
||||||
|
process_info->ClearSuspendedStateChanged();
|
||||||
if (process_info->IsSuspended()) {
|
if (process_info->IsSuspended()) {
|
||||||
out->event = GetProcessEventValue(ProcessEvent::DebugSuspended);
|
out->event = GetProcessEventValue(ProcessEvent::DebugSuspended);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user