home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 8270 / goodbyedeponia_text.7z / goodbyedeponia_export.txt next >
Encoding:
Text File  |  2014-12-14  |  751 b   |  42 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\x18\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 += 8
  19. goto offset
  20. get size long
  21. savepos pos
  22. get dum threebyte
  23. get check byte
  24. if check = 0x00 ||  check = 0xff
  25. else
  26. goto pos
  27. getdstring string size
  28. get size long
  29. getdstring string size
  30. get lang long
  31. if lang = 0
  32. get size long
  33. if size != 0
  34. math size -= 1
  35. getdstring string size
  36. putdstring string size MEMORY_FILE
  37. put 0x0a0d short MEMORY_FILE
  38. get null byte
  39. endif
  40. endif
  41. endif
  42. next