erpt: implement forced shutdown detection
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user