pgl: add missing changes and fix bugs

This commit is contained in:
hexkyz
2026-09-17 00:30:00 +01:00
parent afff8cbf16
commit 7cc625946e
3 changed files with 5 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ namespace ams::pgl {
} }
Result EnableApplicationCrashReport2(os::ProcessId process_id, bool enabled) { Result EnableApplicationCrashReport2(os::ProcessId process_id, bool enabled) {
R_RETURN(::pglEnableApplicationCrashReport2(process_id, enabled)); R_RETURN(::pglEnableApplicationCrashReport2(static_cast<u64>(process_id), enabled));
} }
#else #else
Result Initialize() { Result Initialize() {

View File

@@ -499,7 +499,7 @@ namespace ams::pgl::srv {
void EnableApplicationCrashReport2(os::ProcessId process_id, bool enabled) { void EnableApplicationCrashReport2(os::ProcessId process_id, bool enabled) {
/* Find the data for the process. */ /* Find the data for the process. */
std::scoped_lock lk(g_process_data_mutex); std::scoped_lock lk(g_process_data_mutex);
ProcessData *data = FindProcessData(*process_id); ProcessData *data = FindProcessData(process_id);
/* It's okay if we aren't tracking the process. */ /* It's okay if we aren't tracking the process. */
if (data != nullptr) { if (data != nullptr) {

View File

@@ -279,11 +279,11 @@ namespace ams::scs {
void EventHandlerThread(void *) { void EventHandlerThread(void *) {
/* Get event observer. */ /* Get event observer. */
pgl::EventObserver observer; pgl::EventObserver observer;
R_ABORT_UNLESS(pgl::GetEventObserver(std::addressof(observer))); R_ABORT_UNLESS(pgl::CreateShellEvent(std::addressof(observer)));
/* Get the observer's event. */ /* Get the observer's event. */
os::SystemEventType shell_event; os::SystemEventType shell_event;
R_ABORT_UNLESS(observer.GetSystemEvent(std::addressof(shell_event))); R_ABORT_UNLESS(observer.GetShellEvent(std::addressof(shell_event)));
/* Loop handling events. */ /* Loop handling events. */
while (true) { while (true) {
@@ -294,7 +294,7 @@ namespace ams::scs {
while (true) { while (true) {
/* Get the next event info. */ /* Get the next event info. */
pm::ProcessEventInfo event_info; pm::ProcessEventInfo event_info;
if (R_FAILED(observer.GetProcessEventInfo(std::addressof(event_info)))) { if (R_FAILED(observer.GetShellEventInfo(std::addressof(event_info)))) {
break; break;
} }