pgl: add missing changes and fix bugs
This commit is contained in:
@@ -137,7 +137,7 @@ namespace ams::pgl {
|
||||
}
|
||||
|
||||
Result EnableApplicationCrashReport2(os::ProcessId process_id, bool enabled) {
|
||||
R_RETURN(::pglEnableApplicationCrashReport2(process_id, enabled));
|
||||
R_RETURN(::pglEnableApplicationCrashReport2(static_cast<u64>(process_id), enabled));
|
||||
}
|
||||
#else
|
||||
Result Initialize() {
|
||||
|
||||
@@ -499,7 +499,7 @@ namespace ams::pgl::srv {
|
||||
void EnableApplicationCrashReport2(os::ProcessId process_id, bool enabled) {
|
||||
/* Find the data for the process. */
|
||||
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. */
|
||||
if (data != nullptr) {
|
||||
|
||||
@@ -279,11 +279,11 @@ namespace ams::scs {
|
||||
void EventHandlerThread(void *) {
|
||||
/* Get event 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. */
|
||||
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. */
|
||||
while (true) {
|
||||
@@ -294,7 +294,7 @@ namespace ams::scs {
|
||||
while (true) {
|
||||
/* Get the next 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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user