Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Doom Eternal - .SND files
- # Script for QuickBMS: https://aluigi.altervista.org/quickbms.htm
- get UNK long
- get DATA_OFF long
- get TABLE_OFF long
- math DATA_OFF + 0x08
- math TABLE_OFF + 0x08
- goto TABLE_OFF
- get FILES long
- for i = 0 < FILES
- get UNK1 long # Hash?
- get UNK2 long
- get ID long
- get SIZE long
- get OFFSET long
- get SIZE2 long
- get UNK3 long
- get UNK4 long
- string NAME p "%u" ID
- callfunction DETECT_TYPE 1
- log NAME OFFSET SIZE
- next i
- startfunction DETECT_TYPE
- savepos PREV_OFF
- goto OFFSET
- get HDR long
- if HDR == 0x46464952 # "RIFF"
- string NAME + ".wem"
- else
- string NAME + "."
- endif
- goto PREV_OFF
- endfunction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement