From f29b9d14d79d337c274046eb0e3ba66052ed4cca Mon Sep 17 00:00:00 2001 From: Aurora Date: Sat, 26 Nov 2016 22:46:46 +0100 Subject: [PATCH] Minor stuff --- source/emunand.c | 2 +- source/exceptions.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/source/emunand.c b/source/emunand.c index d748804..c33111f 100644 --- a/source/emunand.c +++ b/source/emunand.c @@ -57,7 +57,7 @@ void locateEmuNand(u32 *emuHeader, FirmwareSource *nandType) case 2: nandOffset = roundedMinsizes[ISN3DS ? 1 : 0]; //"Minsize" layout break; - default: + case 0: nandOffset = *nandType == FIRMWARE_EMUNAND ? 0 : (nandSize > 0x200000 ? 0x400000 : 0x200000); //"Legacy" layout break; } diff --git a/source/exceptions.c b/source/exceptions.c index 86070da..d738e0d 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -179,12 +179,11 @@ void detectAndProcessExceptionDumps(void) } } - char path[36]; - char fileName[] = "crash_dump_00000000.dmp"; - const char *pathFolder = dumpHeader->processor == 9 ? "dumps/arm9" : "dumps/arm11"; + char path[36] = "dumps/", + fileName[] = "crash_dump_00000000.dmp"; - findDumpFile(pathFolder, fileName); - memcpy(path, pathFolder, strlen(pathFolder) + 1); + concatenateStrings(path, dumpHeader->processor == 9 ? "arm9" : "arm11"); + findDumpFile(path, fileName); concatenateStrings(path, "/"); concatenateStrings(path, fileName);