


I need a script that decodes and then encodes this kind of file compression.
Code: Select all
# POP WW bin decompressor
comtype lzo1x
get NAME basename
For
get DECOMP_SIZE long
if DECOMP_SIZE == 0
break
endif
get COMP_ZSIZE long
savepos OFFSET
string FILENAME P "%NAME%.%dec%"
clog FILENAME OFFSET COMP_ZSIZE DECOMP_SIZE
goto COMP_ZSIZE 0 SEEK_CUR
next
rabatini wrote:Try this:Code: Select all
# POP WW bin decompressor
comtype lzo1x
get NAME basename
For
get DECOMP_SIZE long
if DECOMP_SIZE == 0
break
endif
get COMP_ZSIZE long
savepos OFFSET
string FILENAME P "%NAME%.%dec%"
clog FILENAME OFFSET COMP_ZSIZE DECOMP_SIZE
goto COMP_ZSIZE 0 SEEK_CUR
next