erpt: implement forced shutdown detection

This commit is contained in:
Michael Scire committed 2021-04-30 04:21:03 -07:00
1 parent ef0c15b764
commit 355010ad84
17 files changed
+645 -53

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@
"title_id": "0x010000000000002b",
"title_id_range_min": "0x010000000000002b",
"title_id_range_max": "0x010000000000002b",
"main_thread_stack_size": "0x00001000",
"main_thread_stack_size": "0x00002000",
"main_thread_priority": 49,
"default_cpu_id": 3,
"process_category": 0,
+2 -2
View File
@@ -105,9 +105,9 @@ namespace ams::fatal::srv {
/* Decide whether to generate a report. */
this->context.generate_error_report = (policy == FatalPolicy_ErrorReportAndErrorScreen);
/* Adjust error code (2000-0000 -> 2162-0002). */
/* Adjust error code (ResultSuccess()/2000-0000 -> err::ResultSystemProgramAbort()/2162-0002). */
if (R_SUCCEEDED(this->context.result)) {
this->context.result = err::ResultSystemModuleAborted();
this->context.result = err::ResultSystemProgramAbort();
}
switch (policy) {