Skip to content

Instantly share code, notes, and snippets.

@ccawley2011
Created June 15, 2016 17:14
Show Gist options
  • Save ccawley2011/b5b4eda5e0168c7bb1d81bc79774b3a4 to your computer and use it in GitHub Desktop.
Save ccawley2011/b5b4eda5e0168c7bb1d81bc79774b3a4 to your computer and use it in GitHub Desktop.
QuickBMS script to unpack gsp_run.dat in various games published by GSP
# gsp_run.dat unpacker
# By Cameron Cawley
get ARCHIVE_SIZE asize
math ARCHIVE_SIZE += 1
math OFFSET = 0
do
goto OFFSET
get NAME_LENGTH long
getdstring NAME NAME_LENGTH
get SIZE long
math OFFSET += 8
math OFFSET += NAME_LENGTH
log NAME OFFSET SIZE
math OFFSET += SIZE
while OFFSET < ARCHIVE_SIZE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment