AFS

From Wulinshu
Jump to navigation Jump to search

The AFS file is an container for storing various files.
This format only has indices and the file offsets/sizes which need to be mapped with an IDX file to use them in the game.
The files are aligned to an 2048 sector size.

Header

Position Length Type Description
0x00 0x04 string Identifier 0x41465300 (AFS )
0x04 0x04 uint Entry Count

Entry

Position Length Type Description
0x00 0x04 uint File offset (divisible by 2048)
0x04 0x04 uint File size in bytes