ThatTrueStruggle

awb_afs2.bms

Jan 27th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # AWB AFS2 (script 0.1.2)
  2. # thanks to Taylor&Lion for the alignment field
  3. # script for QuickBMS http://quickbms.aluigi.org
  4.  
  5. idstring "AFS2"
  6. get DUMMY long
  7. get FILES long
  8. get MYALIGN long
  9. for i = 0 < FILES
  10. get ALIGN short
  11. putarray 0 i ALIGN
  12. next i
  13.  
  14. get OFFSET long
  15. for i = 0 < FILES
  16. get NEXT_OFFSET long
  17. if MYALIGN != 0
  18. math ALIGN = MYALIGN
  19. else
  20. getarray ALIGN 0 i
  21. endif
  22. math OFFSET x= ALIGN
  23. math SIZE = NEXT_OFFSET
  24. math SIZE -= OFFSET
  25. log "" OFFSET SIZE
  26. math OFFSET = NEXT_OFFSET
  27. next i
Advertisement
Add Comment
Please, Sign In to add comment