maxton / GameArchives

A C# library for reading several video game archive formats, and a sample file explorer.
GNU Lesser General Public License v3.0
95 stars 20 forks source link

Not all files listed in pfs_images #6

Closed luxox8 closed 7 years ago

luxox8 commented 7 years ago

if the index section of the pfs_image have some extra 00's between names, the tool will ignore all files that are after this block.

empty

not all 00 sections have the same size that the showed in the image.

maxton commented 7 years ago

Yup, there are definitely some issues with PFS. Unfortunately I only own two games for testing, so I couldn't catch all the possible variations the first time.

luxox8 commented 7 years ago

I understand you a lot :P

is there a way for obtain a start address manually meanwhile? based on the index section?

maxton commented 7 years ago

You could probably figure it out by following the documentation I wrote here, the start address is calculated by the block size times the first direct block value of the file's inode. If the file is fragmented then things are trickier... the library doesn't even handle that case yet.

luxox8 commented 7 years ago

thanks for the info, is a little bit difficult figure out manually hahaha