From 070f7fcc68f263ce473460fee6440191c1f95ce9 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 14 Aug 2016 13:47:12 +0200 Subject: [PATCH] Fix exception dump folder creation --- source/exceptions.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/exceptions.c b/source/exceptions.c index 61191d4..95fca9e 100644 --- a/source/exceptions.c +++ b/source/exceptions.c @@ -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); }