Cyclones CD

From XentaxWiki
Jump to: navigation, search

CD, HD


Format Specifications

uint16 {2}   - Number Of Files
uint32 {4}   - Directory Offset
uint32 {4}   - Directory Length (includes all directory entries and filenames)

byte {X}     - fileData

// Directory

// for each file
uint32 {4}   - Data Offset [+10]
uint32 {4}   - File Size
uint32 {4}   - Filename Offset [+dirOffset]


// Note that some files have 0 as the offset and size, this should be ignored?
// for each file

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


MultiEx BMS Script

ImpType StandardTail ;
Get FC Int 0 ;
SavePos TailOffOff 0 ;
Get TailOff Long 0 ;
Get TailSize Long 0 ;
GoTo TailOff 0 ;
SavePos ST 0 ;
For T = 1 To FC ;
GoTo ST 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Get FNO Long 0 ;
SavePos ST 0 ;
Math TailOff += FNO ;
GoTo TailOff 0 ;
Math TailOff -= FNO ;
Get FN String 0 ;
Log FN FO FS FOO FSO ;
Next T ;

Compatible Programs