It is recursively defined but there's only one level of recursion so I didn't really bother.
Though, I'm kind of interested why I couldn't make a path name by combining the FOLDER with "/" and NAME. FOLDER kept giving me some weird character.
Code: Select all
#PlayOnline TetraMaster .dat unpack
#written by Tsukihime
#script for QuickBMS http://aluigi.org/papers.htm#quickbms
for i
get TYPE long
if TYPE != 32768
cleanexit
endif
getdstring FOLDER 4
getdstring unk 8
get STARTOFS long
get SIZE long
get unk long
get unk long
savepos curr
goto STARTOFS
for j
get TYPE long
if TYPE != 16384
break
endif
getdstring NAME 12
get OFFSET long
get SIZE long
get unk long
get unk long
string NAME += ".png"
math OFFSET += STARTOFS
log NAME OFFSET SIZE
next j
goto curr
next i

