mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-29 05:55:16 -04:00
Fatal: save auto-debug info to SD card.
This commit is contained in:
parent
962fa0a690
commit
8054b2d219
8 changed files with 151 additions and 6 deletions
|
@ -42,7 +42,7 @@ Result ThrowFatalForSelf(u32 error) {
|
|||
|
||||
Result ThrowFatalImpl(u32 error, u64 pid, FatalType policy, FatalCpuContext *cpu_ctx) {
|
||||
Result rc = 0;
|
||||
FatalThrowContext ctx;
|
||||
FatalThrowContext ctx = {0};
|
||||
ctx.error_code = error;
|
||||
if (cpu_ctx != nullptr) {
|
||||
ctx.cpu_ctx = *cpu_ctx;
|
||||
|
@ -86,7 +86,7 @@ Result ThrowFatalImpl(u32 error, u64 pid, FatalType policy, FatalCpuContext *cpu
|
|||
if (R_FAILED((rc = SetThrown()))) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
/* Signal that fatal is about to happen. */
|
||||
GetEventManager()->SignalEvents();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue