the script will decompress and extract the files from gma on the fly, only tested on a couple so far.
Code: Select all
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm
//Decompression
comtype lzma_dynamic
get ZSIZE asize
get FOLDER basename
clog memory_file 0 ZSIZE ZSIZE
//Extraction
idstring -1 "GMAD"
get FORMAT_VER byte -1
get STEAMID longlong -1
get TIMESTAMP longlong -1
get ZERO byte -1
getct ARC_NAME string 0x00 -1
getct DESCRIPTION string 0x00 -1
getct AUTHOR string 0x00 -1
get ADDON_VER long -1
for i
get IDX long -1
if IDX == 0
break
endif
get NAME string -1
get SIZE long -1
get ZERO long -1
get CRC_ long -1
putarray 1 i NAME
putarray 2 i SIZE
next i
savepos OFFSET -1
math FILES = i
for j = 0 < FILES
getarray NAME 1 j
getarray SIZE 2 j
string NAME p "%s\%s" FOLDER NAME
log NAME OFFSET SIZE -1
math OFFSET + SIZE
goto OFFSET -1
next j