bnnm

bso

Mar 31st, 2018
27
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # CHUCHEL (Amanita Design) .bso extract
  2.  
  3. endian big
  4.  
  5. get FILE_SIZE asize
  6. set OFFSET long 0
  7.  
  8. do
  9. goto OFFSET
  10.  
  11. get ID byte
  12. if ID != 0x03
  13. print "Unknown byte at %OFFSET|h%"
  14. exit
  15. endif
  16.  
  17. get NAME_SIZE short
  18. getdstring NAME NAME_SIZE
  19. string NAME += ".mp3"
  20.  
  21. get SIZE long
  22.  
  23. savepos OFFSET
  24. log NAME OFFSET SIZE
  25.  
  26. math OFFSET += SIZE
  27.  
  28. while OFFSET < FILE_SIZE
RAW Paste Data