Fix exception dump folder creation

This commit is contained in:
TuxSH 2016-08-14 13:47:12 +02:00
parent 4d48238fb1
commit 070f7fcc68

View File

@ -143,6 +143,8 @@ void detectAndProcessExceptionDumps(void)
memcpy(&path9[17], fileName, sizeof(fileName));
if(!fileWrite((void *)dump, path9, size))
{
createDirectory("/luma");
createDirectory("/luma/dumps");
createDirectory("/luma/dumps/arm9");
fileWrite((void *)dump, path9, size);
}
@ -155,6 +157,8 @@ void detectAndProcessExceptionDumps(void)
memcpy(&path11[18], fileName, sizeof(fileName));
if(!fileWrite((void *)dump, path11, size))
{
createDirectory("/luma");
createDirectory("/luma/dumps");
createDirectory("/luma/dumps/arm11");
fileWrite((void *)dump, path11, size);
}