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: case 2:
nandOffset = roundedMinsizes[ISN3DS ? 1 : 0]; //"Minsize" layout nandOffset = roundedMinsizes[ISN3DS ? 1 : 0]; //"Minsize" layout
break; break;
default: case 0:
nandOffset = *nandType == FIRMWARE_EMUNAND ? 0 : (nandSize > 0x200000 ? 0x400000 : 0x200000); //"Legacy" layout nandOffset = *nandType == FIRMWARE_EMUNAND ? 0 : (nandSize > 0x200000 ? 0x400000 : 0x200000); //"Legacy" layout
break; break;
} }

View File

@ -179,12 +179,11 @@ void detectAndProcessExceptionDumps(void)
} }
} }
char path[36]; char path[36] = "dumps/",
char fileName[] = "crash_dump_00000000.dmp"; fileName[] = "crash_dump_00000000.dmp";
const char *pathFolder = dumpHeader->processor == 9 ? "dumps/arm9" : "dumps/arm11";
findDumpFile(pathFolder, fileName); concatenateStrings(path, dumpHeader->processor == 9 ? "arm9" : "arm11");
memcpy(path, pathFolder, strlen(pathFolder) + 1); findDumpFile(path, fileName);
concatenateStrings(path, "/"); concatenateStrings(path, "/");
concatenateStrings(path, fileName); concatenateStrings(path, fileName);