GTA San Andreas SFXZIP: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks No edit summary |
imported>Ikskoks No edit summary |
(No difference)
| |
Latest revision as of 13:54, 10 January 2021
SFXZIP
- Format Type : Archive
- Endian Order : Little Endian
Format Specifications
// General structure
uint32{4} Number of resources
char{n} Resource Info
char{n} Resource data
// Resource Info
// For each resource
uint32{4} Resource offset
uint32{4} Unknown
uint32{4} Unknown
MultiEx BMS
Get FileNum Long 0 ; Math FileNum -= 1 ; For T = 1 To FileNum ; Get Offset Long 0 ; Get D Long 0 ; Get D Long 0 ; SavePos J 0 ; Get Size Long 0 ; Math Size -= Offset ; Log "" Offset Size 0 0 ; GoTo J 0 ; Next T ; Get Offset Long 0 ; GoTo EOF 0 ; SavePos Size 0 ; Math Size -= Offset ; Log "" Offset Size 0 0 ;
Notes and Comments
To get the resource sizes, subtract the current offset from the offset of the next resource. If you reach the last, subtract its offset from the total archive size.