You Dont Know Jack SRF: Difference between revisions
Jump to navigation
Jump to search
imported>WATTO No edit summary |
imported>Elcondor |
||
| Line 24: | Line 24: | ||
=== MultiEx BMS Script === | === MultiEx BMS Script === | ||
IDString 0 srf1 ; | |||
FindLoc DUMMYL String snd 0 ; | |||
Math DUMMYL += 4 ; | |||
GoTo DUMMYL 0 ; | |||
Get FILECNTL Long 0 ; | |||
ReverseLong FILECNTL ; | |||
SavePos FILESTART 0 ; | |||
Do ; | |||
GoTo FILESTART 0 ; | |||
Get FILENAME Long 0 ; | |||
ReverseLong FILENAME ; | |||
Get FILEOFF Long 0 ; | |||
ReverseLong FILEOFF ; | |||
Get FILESIZE Long 0 ; | |||
ReverseLong FILESIZE ; | |||
SavePos FILESTART 0 ; | |||
Log FILENAME FILEOFF FILESIZE 0 0 ; | |||
Math EXTRCNT += 1 ; | |||
While EXTRCNT <> FILECNTL ; | |||
=== Compatible Programs === | === Compatible Programs === | ||
* None - Incomplete format specifications | * None - Incomplete format specifications | ||
Revision as of 19:34, 30 May 2005
Choose archive extension:
SRF
- Format Type : Archive
- Endian Order : Big Endian
Format Specifications
char {4} - Header (srf1)
uint32 {4} - Archive Size
// for each file
- uint32 {4} - File Size (including these two 4-byte fields)
- char {4} - File Type/Extension (32 terminated)
- byte {X} - File Data
MultiEx BMS Script
IDString 0 srf1 ; FindLoc DUMMYL String snd 0 ; Math DUMMYL += 4 ; GoTo DUMMYL 0 ; Get FILECNTL Long 0 ; ReverseLong FILECNTL ; SavePos FILESTART 0 ; Do ; GoTo FILESTART 0 ; Get FILENAME Long 0 ; ReverseLong FILENAME ; Get FILEOFF Long 0 ; ReverseLong FILEOFF ; Get FILESIZE Long 0 ; ReverseLong FILESIZE ; SavePos FILESTART 0 ; Log FILENAME FILEOFF FILESIZE 0 0 ; Math EXTRCNT += 1 ; While EXTRCNT <> FILECNTL ;
Compatible Programs
- None - Incomplete format specifications