home *** CD-ROM | disk | FTP | other *** search
- goto 8
- get name basename
- string name += .dat
- get size long
- get zsize long
- clog name 16 zsize size
- open FDSE name
- log MEMORY_FILE 0 0
- get name basename
- string name += .txt
- for
- findloc offset string "\xff\xff\xff\xff\x05\x00\x00\x00" 0 ""
- if offset == ""
- get size asize MEMORY_FILE
- log name 0 size MEMORY_FILE
- cleanexit
- endif
- math offset -= 4
- goto offset
- get null long
- if null = 0
- getdstring d 8
- else
- getdstring d 8
- get size long
- savepos pos
- get check byte
- get check2 byte
- get check3 byte
- get check4 byte
- if check = 0x00 || check = 0xff || check2 = 0x00 || check2 = 0xff
- elseif check3 != 0x00 && check3 != 0xff && check4 != 0x00 && check4 != 0xff
- goto pos
- getdstring string size
- get size long
- getdstring string size
- get lang long
- if lang = 0
- get size long
- if size != 0
- getdstring string size
- putdstring string size MEMORY_FILE
- put 0x0a0d short MEMORY_FILE
- get null byte
- endif
- endif
- endif
- endif
- next