Create /luma/dumps/arm9 and /luma/dumps/arm11 automatically when needed.
This commit is contained in:
parent
3709ac301a
commit
915f9ccb0d
2
Makefile
2
Makefile
@ -63,8 +63,6 @@ clean:
|
||||
|
||||
$(dir_out):
|
||||
@mkdir -p "$(dir_out)/luma/payloads"
|
||||
@mkdir -p "$(dir_out)/luma/dumps/arm9"
|
||||
@mkdir -p "$(dir_out)/luma/dumps/arm11"
|
||||
|
||||
$(dir_out)/$(name).dat: $(dir_build)/main.bin $(dir_out)
|
||||
@$(MAKE) $(FLAGS) -C $(dir_mset) launcher
|
||||
|
@ -141,7 +141,11 @@ void detectAndProcessExceptionDumps(void)
|
||||
findDumpFile(path9, fileName);
|
||||
path9[16] = '/';
|
||||
memcpy(&path9[17], fileName, sizeof(fileName));
|
||||
fileWrite((void *)dump, path9, size);
|
||||
if(!fileWrite((void *)dump, path9, size))
|
||||
{
|
||||
createDirectory("/luma/dumps/arm9");
|
||||
fileWrite((void *)dump, path9, size);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
@ -149,7 +153,11 @@ void detectAndProcessExceptionDumps(void)
|
||||
findDumpFile(path11, fileName);
|
||||
path11[17] = '/';
|
||||
memcpy(&path11[18], fileName, sizeof(fileName));
|
||||
fileWrite((void *)dump, path11, size);
|
||||
if(!fileWrite((void *)dump, path11, size))
|
||||
{
|
||||
createDirectory("/luma/dumps/arm11");
|
||||
fileWrite((void *)dump, path11, size);
|
||||
}
|
||||
}
|
||||
|
||||
char arm11Str[] = "Processor: ARM11 (core X)";
|
||||
|
Reference in New Issue
Block a user