Created
April 7, 2020 00:22
-
-
Save maximilionus/d8727ed92d29f506ffec0e05381ca2b5 to your computer and use it in GitHub Desktop.
QuickBMS script for working with Nier: Automata .dtt archives
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Author
maximilionus
commented
Apr 7, 2020
- 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