Forza MotorSport CAB

From XentaxWiki
Jump to: navigation, search

CAB


Format Specifications

byte {4}     - Header? (170 170 192 192)
uint32 {4}   - Unknown (15)
uint32 {4}   - Number Of Files
uint32 {4}   - Version (1)
uint32 {4}   - Archive Size
uint32 {4}   - Decompressed Archive Size?
uint32 {4}   - Filename Directory Length
uint32 {4}   - Filename Directory Length
byte {16}    - null
uint16 {2}   - Unknown (1)
byte {256}   - Archive Directory (null)

// for each file

uint32 {4}   - File Offset
uint32 {4}   - Compressed File Size
uint32 {4}   - Decompressed File Size
uint32 {4}   - Unknown
uint32 {4}   - null
uint32 {4}   - Unknown


// for each file

char {X}     - Filename
byte {1}     - null Filename Terminator


byte {X}     - File Data

MultiEx BMS

ImpType Standard ;
ComType ZLib1 ;
GoTo 8 0 ;
Get FNum Long 0 ;
GoTo 24 0 ;
Set FNDir Long 24 ;
GoTo 306 0 ;
Math FNDir *= FNum ;
Math FNDir += 306 ;
For n = 1 To FNum ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
SavePos DFSO 0 ;
Get DFS Long 0 ;
SavePos NextJump 0 ;
Math NextJump += 12 ;
GoTo FNDir 0 ;
Get FN String 0 ;
SavePos FNDir 0 ;
GoTo NextJump 0 ;
CLog FN FO FS FOO FSO DFS DFSO ;
Next n ; 

Notes and Comments

  • Uses ZLib compression for the files


Supported Programs