mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
parent
db4564a3f5
commit
2ddf5d334c
@ -230,6 +230,12 @@ bool fileCopy(const char *pathSrc, const char *pathDst, bool replace, void *tmpB
|
||||
return true;
|
||||
}
|
||||
|
||||
bool createDir(const char *path)
|
||||
{
|
||||
FRESULT res = f_mkdir(path);
|
||||
return res == FR_OK || res == FR_EXIST;
|
||||
}
|
||||
|
||||
bool findPayload(char *path, u32 pressed)
|
||||
{
|
||||
const char *pattern;
|
||||
@ -494,5 +500,8 @@ bool doLumaUpgradeProcess(void)
|
||||
fileDelete("sdmc:/luma/config.bin");
|
||||
fileDelete("nand:/rw/luma/config.bin");
|
||||
|
||||
createDir("sdmc:/luma/payloads");
|
||||
createDir("nand:/rw/luma/payloads");
|
||||
|
||||
return ok && ok2;
|
||||
}
|
||||
|
||||
@ -39,6 +39,7 @@ u32 getFileSize(const char *path);
|
||||
bool fileWrite(const void *buffer, const char *path, u32 size);
|
||||
bool fileDelete(const char *path);
|
||||
bool fileCopy(const char *pathSrc, const char *pathDst, bool replace, void *tmpBuffer, size_t bufferSize);
|
||||
bool createDir(const char *path);
|
||||
bool findPayload(char *path, u32 pressed);
|
||||
bool payloadMenu(char *path, bool *hasDisplayedMenu);
|
||||
u32 firmRead(void *dest, u32 firmType);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user