From 2427664682d7470ab8bdeaba3f2cd5f5c7f12577 Mon Sep 17 00:00:00 2001 From: Blake Warner Date: Sat, 20 Apr 2019 17:55:52 -0400 Subject: [PATCH] removed PFS0 file entry offset check that failed when file entries were not packed. --- pfs0.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pfs0.c b/pfs0.c index 8c5bd71..136a822 100644 --- a/pfs0.c +++ b/pfs0.c @@ -34,10 +34,6 @@ void pfs0_process(pfs0_ctx_t *ctx) { uint64_t cur_ofs = 0; for (unsigned int i = 0; i < ctx->header->num_files; i++) { pfs0_file_entry_t *cur_file = pfs0_get_file_entry(ctx->header, i); - if (cur_file->offset != cur_ofs) { - printf("Error: PFS0 is corrupt!\n"); - exit(EXIT_FAILURE); - } cur_ofs += cur_file->size; }