Minor stuff

This commit is contained in:
Aurora 2016-11-26 22:46:46 +01:00
parent 9c9fd2deef
commit f29b9d14d7
2 changed files with 5 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);