Merge pull request #71 from blawar/master

removed PFS0 file entry offset check that failed when file entries were not packed.
This commit is contained in:
SciresM 2019-04-20 15:05:40 -07:00 committed by GitHub
commit 4f6c4bf38b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
pfs0.c
View file

@ -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;
}