home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8467 / goodbyedeponia_text.7z / goodbyedeponia_export_v2.bms next >
Encoding:
Text File  |  2015-01-10  |  946 b   |  49 lines

  1. goto 8
  2. get name basename
  3. string name += .dat
  4. get size long
  5. get zsize long
  6. clog name 16 zsize size
  7. open FDSE name
  8. log MEMORY_FILE 0 0
  9. get name basename
  10. string name += .txt
  11. for
  12. findloc offset string "\xff\xff\xff\xff\x05\x00\x00\x00" 0 ""
  13. if offset == ""
  14. get size asize MEMORY_FILE
  15. log name 0 size MEMORY_FILE
  16. cleanexit
  17. endif
  18. math offset -= 4
  19. goto offset
  20. get null long
  21. if null = 0
  22. getdstring d 8
  23. else
  24. getdstring d 8
  25. get size long
  26. savepos pos
  27. get check byte
  28. get check2 byte
  29. get check3 byte
  30. get check4 byte
  31. if check = 0x00 ||  check = 0xff || check2 = 0x00 || check2 = 0xff
  32. elseif check3 != 0x00 &&  check3 != 0xff && check4 != 0x00 && check4 != 0xff
  33. goto pos
  34. getdstring string size
  35. get size long
  36. getdstring string size
  37. get lang long
  38. if lang = 0
  39. get size long
  40. if size != 0
  41. getdstring string size
  42. putdstring string size MEMORY_FILE
  43. put 0x0a0d short MEMORY_FILE
  44. get null byte
  45. endif
  46. endif
  47. endif
  48. endif
  49. next