SHARE
TWEET

ea_mus_sns_snr_type1

bnnm Jun 1st, 2018 231 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # EA .MUS (SNR+SNS) extractor "type 1" (NFS Undercover)
  2.  
  3. endian litte #be for X360 and PS3
  4.  
  5. #idstring "\x63\xA9\x3A\x22"
  6. get DUMMY long #idstring varies
  7.  
  8. get FILES short #long?
  9.  
  10. get FILENAME basename
  11.  
  12. goto 0x28
  13.  
  14. for I = 0 < FILES
  15.  
  16.   get DUMMY long #hash?
  17.   get NUMBER short
  18.   get DUMMY short #always 0
  19.  
  20.   get SNR_OFFSET long
  21.   math SNR_OFFSET *= 0x10
  22.   get SNS_OFFSET long
  23.   math SNS_OFFSET *= 0x80
  24.  
  25.   get SNR_SIZE long
  26.   get SNS_SIZE long
  27.  
  28.   get DUMMY long #always 0
  29.  
  30.   # dump
  31.   string SNR_NAME p= "%s__%03i.snr" FILENAME I
  32.   string SNS_NAME p= "%s__%03i.sns" FILENAME I
  33.  
  34.   log SNR_NAME SNR_OFFSET SNR_SIZE
  35.   log SNS_NAME SNS_OFFSET SNS_SIZE
  36.  
  37. next I
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top