mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +00:00
pm: fix missing flag clears
This commit is contained in:
parent
a9f5b7728b
commit
c20774ff5d
@ -1 +1 @@
|
|||||||
Subproject commit 45700a12e80404e3c49e2bc4893412489fc72040
|
Subproject commit ccfadc501bb89c3b42b7b4ed473094fee8c1043f
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user