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 +}