GTA San Andreas SFXZIP

From XentaxWiki
Jump to: navigation, search

SFXZIP


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.


Supported by Programs