Code: Select all
# extractor for the auddata.zap of Lost Winds (WiiWare)
# written by AlphaTwentyThree of Zenhax
# script for QuickBMS http://quickbms.aluigi.org
idstring "ZAP"
get DUMMY byte
get DUMMY long
get ENTRIES_ALL long # files & folders
get UNK long
get NL short
set OFFSET 0x800
set i 1
do
get DUMMY long
get ENTRIES short
get FOLDER string
get NL short
for k = 2 <= ENTRIES
get SIZE long
get UNK short
get FNAME string
get NL short
string NAME p= "%s%s" FOLDER FNAME
if SIZE != 0
log NAME OFFSET SIZE
endif
math OFFSET += SIZE
math OFFSET x= 0x800
next k
math i += ENTRIES
while i <= ENTRIES_ALL
P.S.: I hope it's ok to just post my scripts in separate posts. If you want me to gather all of them in a single thread, please rename this thread "My QuickBMS scripts" and move it to code talk.