Skip to content

Instantly share code, notes, and snippets.

@maximilionus
Created April 7, 2020 00:22
Show Gist options
  • Save maximilionus/d8727ed92d29f506ffec0e05381ca2b5 to your computer and use it in GitHub Desktop.
Save maximilionus/d8727ed92d29f506ffec0e05381ca2b5 to your computer and use it in GitHub Desktop.
QuickBMS script for working with Nier: Automata .dtt archives
idstring "DAT\0"
for OFFSET = 0 < EOF
findloc OFFSET string "DDS "
goto OFFSET
get ddsMagic long
findloc SIZE string "DDS " 0 ""
if SIZE == ""
get SIZE asize
endif
goto SIZE
math SIZE -= OFFSET
get NAME basename
string NAME p= "%s_%08x.dds" NAME OFFSET
log NAME OFFSET SIZE
next
@maximilionus
Copy link
Author

  • Original author of the script is reddit user phaax.
  • His post: link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment