mirror of
https://github.com/SciresM/hactool
synced 2024-11-22 20:13:08 +00:00
removed PFS0 file entry offset check that failed when file entries were not packed.
This commit is contained in:
parent
dc6fbd927e
commit
2427664682
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