I have managed to get it to list the file names of the files but I can't get it to extract the files.
I think I am close but I do not know what I am doing wrong.
Here is a sample archive and what I have made out in a bms script so far.
Code: Select all
idstring "SFILESYSTEM"
#get FILES long
math FILES += 184
goto 0x118
#goto 0x224
for i = 0 < FILES
get NULL1 long
get OFFSET long
goto OFFSET
get OFFSET2 long
getdstring NAME 0x100
get ZSIZE long
get SIZE long
#get ZSIZE long
#get SIZE long
#get NULL long
#get OFFSET long
#goto OFFSET
#get NULL2 long
#getdstring NAME 0x100
clog NAME OFFSET ZSIZE SIZE
goto OFFSET
next i
then the offset of the file table entry 4 bytes long
then you go to that table entry and you get the zip size long
then the uncompressed size long
then you start the cycle again but you need to log the archive or pick up the file table from that spot so it will keep reading the file table.
what I have commented out was how I got it to list the file table correctly but I could not extract.
Thanks in advance for any help
then 0x100 for the file name

