Pak files should have an additional empty entry header at the end of them, this adds that.
This was found to cause crashes in P3P, mainly when editing init_free.bin as it is loaded at boot when there is a decent chance the memory after the file is unallocated.
Looking at pak files from P5R and P4G it seems that all versions of the format probably expect this additional header so I've added it for all three. Those games seemingly not crashing may be due to them handling the erroneous file better (just speculation, P3P is the only game I properly looked at).
Pak files should have an additional empty entry header at the end of them, this adds that.
This was found to cause crashes in P3P, mainly when editing init_free.bin as it is loaded at boot when there is a decent chance the memory after the file is unallocated.
Looking at pak files from P5R and P4G it seems that all versions of the format probably expect this additional header so I've added it for all three. Those games seemingly not crashing may be due to them handling the erroneous file better (just speculation, P3P is the only game I properly looked at).