Skip to content

Instantly share code, notes, and snippets.

@blood72
Created October 14, 2018 14:22
Show Gist options
  • Save blood72/ba8e89dc38898fced6106af449d4c59b to your computer and use it in GitHub Desktop.
Save blood72/ba8e89dc38898fced6106af449d4c59b to your computer and use it in GitHub Desktop.
卧龙吟(Wolong Yin, 와룡전설) .DAT Resource extraction script
# author: blood72
# script for QuickBMS http://quickbms.aluigi.org
endian big
savepos OFFSET 0
Do
goto OFFSET
# get file name
getDstring dummy1 11
get LENG short
getDstring NAME LENG
# get file size
getDstring dummy2 8
get SIZE long
savepos OFFSET
# extract file
log NAME OFFSET SIZE
math OFFSET + SIZE
While OFFSET != EOF
# end of script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment