Simplify string ops with already compiled-in functions
This commit is contained in:
@@ -271,10 +271,10 @@ void secmon_exo_check_panic()
|
||||
// Save context to the SD card.
|
||||
char filepath[0x40];
|
||||
f_mkdir("atmosphere/fatal_errors");
|
||||
memcpy(filepath, "/atmosphere/fatal_errors/report_", 33);
|
||||
strcpy(filepath, "/atmosphere/fatal_errors/report_");
|
||||
itoa((u32)((u64)rpt->report_identifier >> 32), filepath + strlen(filepath), 16);
|
||||
itoa((u32)(rpt->report_identifier), filepath + strlen(filepath), 16);
|
||||
memcpy(filepath + strlen(filepath), ".bin", 5);
|
||||
strcat(filepath, ".bin");
|
||||
|
||||
sd_save_to_file((void *)rpt, sizeof(atm_fatal_error_ctx), filepath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user