mirror of
https://github.com/SciresM/hactool
synced 2024-11-25 21:40:23 +00:00
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:
commit
4f6c4bf38b
1 changed files with 0 additions and 4 deletions
4
pfs0.c
4
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue