successfully call f_mkfs(). it's a start I guess.

This commit is contained in:
Arisotura
2021-09-12 04:32:12 +02:00
parent b841f24996
commit 529620a49e
7 changed files with 157 additions and 7 deletions

View File

@ -52,7 +52,10 @@ bool Init(FILE* nandfile, u8* es_keyY)
if (!nandfile)
return false;
ff_disk_open(FF_ReadNAND, FF_WriteNAND);
fseek(nandfile, 0, SEEK_END);
u64 nandlen = ftell(nandfile);
ff_disk_open(FF_ReadNAND, FF_WriteNAND, (LBA_t)(nandlen>>9));
FRESULT res;
res = f_mount(&CurFS, "0:", 0);