re-implement formatting + add firmware dumping

This commit is contained in:
Such Meme, Many Skill
2019-12-11 14:45:30 +01:00
parent ae225abb75
commit 47df1b9cd1
9 changed files with 135 additions and 27 deletions

View File

@@ -295,7 +295,7 @@ int readfolder(const char *path){
message(errmes, COLOR_RED);
}
while (!f_readdir(&dir, &fno) && fno.fname[0]){
while (!f_readdir(&dir, &fno) && fno.fname[0] && folderamount < 500){
addobject(fno.fname, folderamount++, (fno.fattrib & AM_DIR), (fno.fattrib & AM_ARC));
}