From ca07af2fe929df047787f4de7778e030fbbaa1bc Mon Sep 17 00:00:00 2001 From: TuxSH Date: Thu, 12 May 2016 15:08:12 +0200 Subject: [PATCH] Update fs.c --- source/fs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/fs.c b/source/fs.c index 13212a3..eb54b55 100644 --- a/source/fs.c +++ b/source/fs.c @@ -85,6 +85,8 @@ void loadPayload(u32 pressed) memcpy(&path[15], info.altname, 13); loaderAddress[1] = fileRead((void *)0x24F00000, path); + + if(pattern[0] == 'n') f_unlink(path); ((void (*)())loaderAddress)(); } @@ -158,4 +160,4 @@ void firmRead(void *dest, const char *firmFolder) } fileRead(dest, path); -} \ No newline at end of file +}