Add fw dumping

- also fatfs is stupid
- also close files properly on a failed copy
- also check for errors during folder readouts
- also make sure holding vol- doesn't dump the keys anyway
This commit is contained in:
suchmememanyskill committed 2020-12-28 02:29:58 +01:00
1 parent 859ad2cc4c
commit 513bd804b1
18 files changed
+222 -29

No files matched your search

+10 -1
View File
@@ -42,4 +42,13 @@ char *GetFileAttribs(FSEntry_t entry){
char *ret = CpyStr("RHSVDA");
MaskIn(ret, entry.optionUnion, '-');
return ret;
}
}
bool FileExists(char* path){
FRESULT fr;
FILINFO fno;
fr = f_stat(path, &fno);
return !(fr & FR_NO_FILE);
}