bnnm

mus_simpsons_ps3.bms

Apr 1st, 2018
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # EA .MUS (SNR+SNS) extract from The Simpsons Game (PS3)
  2.  
  3. endian big
  4.  
  5. idstring "\x63\xA9\x3A\x22"
  6.  
  7. get FILES byte
  8.  
  9. get FILENAME basename
  10.  
  11. goto 0x28
  12.  
  13. for I = 0 < FILES
  14.  
  15. get DUMMY long #hash?
  16. get NUMBER short
  17. get DUMMY short #always 0
  18.  
  19. get SNR_OFFSET long
  20. math SNR_OFFSET *= 0x10
  21. get SNS_OFFSET long
  22. math SNS_OFFSET *= 0x80
  23.  
  24. get SNR_SIZE long
  25. get SNS_SIZE long
  26.  
  27. get DUMMY long #always 0
  28.  
  29. # dump
  30. string SNR_NAME p= "%s__%03i.snr" FILENAME I
  31. string SNS_NAME p= "%s__%03i.sns" FILENAME I
  32.  
  33. log SNR_NAME SNR_OFFSET SNR_SIZE
  34. log SNS_NAME SNS_OFFSET SNS_SIZE
  35.  
  36. next I
RAW Paste Data