default.txt 942 B

1234567891011121314151617181920212223242526272829
  1. ' creating configuration storage and initializing with default values
  2. Set cfg = CreateObject("Scripting.Dictionary")
  3. ' reading ini file
  4. for i = 0 to ubound(ini_strings)
  5. s = trim(ini_strings(i))
  6. ' skipping empty strings and comments
  7. if mid(s, 1, 1) <> "#" and len(s) > 0 then
  8. ' obtaining key and value
  9. parts = split(s, "=", -1, 1)
  10. if ubound(parts)+1 = 2 then
  11. parts(0) = trim(parts(0))
  12. parts(1) = trim(parts(1))
  13. ' reading configuration and filenames
  14. select case lcase(parts(0))
  15. case "uncompressed""_postfix" cfg.item("uncompressed""_postfix") = parts(1)
  16. case "f"
  17. options = split(parts(1), "|", -1, 1)
  18. if ubound(options)+1 = 2 then
  19. ' 0: filename, 1: options
  20. ff.add trim(options(0)), trim(options(1))
  21. end if
  22. end select
  23. end if
  24. end if
  25. next