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
2020-12-28 02:29:58 +01:00
parent 859ad2cc4c
commit 513bd804b1
18 changed files with 222 additions and 29 deletions

View File

@@ -3,4 +3,5 @@
#include "../../utils/vector.h"
#include "../fstypes.h"
Vector_t /* of type FSEntry_t */ ReadFolder(char *path);
void clearFileVector(Vector_t *v);
Vector_t /* of type FSEntry_t */ ReadFolder(char *path, int *res);