Skip to content

Commit

Permalink
deleted files won't cause any issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ecpre committed Feb 22, 2023
1 parent c6a9f0d commit 8abca26
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FuseRedSea.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ void redsea_read_files(struct redsea_directory* directory, unsigned char *path_s
break; // end of directory
}
printf("0x%04x ", filetype);
// handle deleted files
if (filetype == 0x0910 || filetype == 0x0920 || filetype == 0x0d20) {
printf("DELETED FILE\n");
fseek(image, 62, SEEK_CUR);
continue;
}
if (filetype == 0x0810) printf("Directory ");
else if (filetype == 0x0820) printf("File ");
else if (filetype == 0x0c20) printf("Compressed File ");
Expand Down

0 comments on commit 8abca26

Please sign in to comment.