From 8abca267b3705cf49ebd9531fb7879a6372e5b4a Mon Sep 17 00:00:00 2001 From: ecpre Date: Tue, 21 Feb 2023 21:38:52 -0500 Subject: [PATCH] deleted files won't cause any issues --- FuseRedSea.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FuseRedSea.c b/FuseRedSea.c index 818b3c9..cffa62f 100644 --- a/FuseRedSea.c +++ b/FuseRedSea.c @@ -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 ");