ExperimentalGear/scripts/common/gameconfig.lua

11 lines
228 B
Lua

require("common.filereader")
GameConfig = {}
function RefreshConfig()
for _, match in ipairs(FindPatterns("Main.cfg", "(%w*)%s*=%s*\"?([^\"%s]*)\"?")) do
GameConfig[match[1]] = match[2]
end
end
RefreshConfig()