]> git.zerfleddert.de Git - rsbs2/blobdiff - extract.c
add missing text to output when files are ignored
[rsbs2] / extract.c
index 86491d1cfcf47541f5dc15a255832e6c8d030f77..1f9c4dd9bd38638ae130eab5d90bb0f49a216875 100644 (file)
--- a/extract.c
+++ b/extract.c
@@ -22,7 +22,9 @@ struct file_entry* get_next_file(unsigned char *fw, int len)
        if (fw != NULL && len != 0) {
                pos = fw + 0x28;
 
+#if 0
                printf("Start of filesystem: 0x%08x\n", *((unsigned int*)pos));
+#endif
                pos = fw + *((unsigned int*)pos);
                end = fw + len;
        }
@@ -38,7 +40,9 @@ struct file_entry* get_next_file(unsigned char *fw, int len)
 
        if ((fent.length > (end - pos)) ||
            (name_length > (end - pos))) {
+#if 0
                printf("EOF reached\n");
+#endif
                return NULL;
        }
 
@@ -96,6 +100,8 @@ void extract_files(unsigned char *fw, int len)
                                        extract_lz_file(lzpos, (unsigned char*)lzname);
                                }
                        }
+               } else {
+                       printf(", ignoring...\n");
                }
                fent = get_next_file(NULL, 0);
        }
Impressum, Datenschutz