get_version.lua 192 B

12345678
  1. local data = read_file("addons/main/script_version.hpp");
  2. local ver = ""
  3. for k, v in string.gmatch(data, "#define ([A-Z]+) ([0-9]+)") do
  4. ver = ver .. v .. "."
  5. end
  6. return ver:sub(1, -2);