daily pastebin goal
77%
SHARE
TWEET

riddick_xcd2.bms

a guest Sep 9th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. endian little
  2.  
  3. open FDSE "WAVEDATA" 0
  4. open FDSE "WAVEINFO" 1
  5.  
  6. get FILESIZE asize
  7.  
  8. for OFFSET = 0x7D0 < FILESIZE
  9.    # WAVEDATA
  10.    goto OFFSET
  11.    get DUMMY long
  12.    get DUMMY long
  13.    get SIZE long
  14.    math SIZE += 0x24
  15.  
  16.    # WAVEINFO
  17.    get DUMMY long 1 # global offset in xwc
  18.    get WI_SIZE long 1 # file size
  19.    if SIZE != WI_SIZE
  20.       print "incorrect size vs WAVEINFO size"
  21.       exit
  22.    endif
  23.    get STRING_SIZE long 1
  24.    
  25.    getdstring NAME STRING_SIZE 1
  26.    xmath PAD " STRING_SIZE % 4 "
  27.    if PAD > 0
  28.      savepos CURRENT 1
  29.      xmath CURRENT " CURRENT + 4 - PAD "
  30.      goto CURRENT 1
  31.    endif
  32.  
  33.  
  34.    string NAME += ".xwc"
  35.  
  36.    log NAME OFFSET SIZE
  37.  
  38.    math OFFSET += SIZE
  39. next
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
Pastebin PRO 'AUTUMN SPECIAL'!
Get 40% OFF Pastebin PRO accounts!
 
Top