Update fs.c
This commit is contained in:
parent
2fe5da97eb
commit
ca07af2fe9
@ -85,6 +85,8 @@ void loadPayload(u32 pressed)
|
|||||||
memcpy(&path[15], info.altname, 13);
|
memcpy(&path[15], info.altname, 13);
|
||||||
|
|
||||||
loaderAddress[1] = fileRead((void *)0x24F00000, path);
|
loaderAddress[1] = fileRead((void *)0x24F00000, path);
|
||||||
|
|
||||||
|
if(pattern[0] == 'n') f_unlink(path);
|
||||||
|
|
||||||
((void (*)())loaderAddress)();
|
((void (*)())loaderAddress)();
|
||||||
}
|
}
|
||||||
@ -158,4 +160,4 @@ void firmRead(void *dest, const char *firmFolder)
|
|||||||
}
|
}
|
||||||
|
|
||||||
fileRead(dest, path);
|
fileRead(dest, path);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user