[script] Lost Winds auddata.zap

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[script] Lost Winds auddata.zap

Post by AlphaTwentyThree »

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.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: [script] Lost Winds auddata.zap

Post by Mygoshi »

Thank you for this script.
Last edited by Mygoshi on Wed May 06, 2020 6:38 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [script] Lost Winds auddata.zap

Post by aluigi »

@AlphaTwentyThree
As you prefer. With google there is no problem to find the scripts you post in "My QuickBMS scripts" so for me it's ok if you want to continue to post them there.