2022-04-05 06:36:11 +02:00
|
|
|
require("common.filereader")
|
2022-04-04 01:58:10 +02:00
|
|
|
|
2022-04-05 06:36:11 +02:00
|
|
|
GameConfig = {}
|
2022-04-04 01:58:10 +02:00
|
|
|
|
2022-04-05 06:36:11 +02:00
|
|
|
function RefreshConfig()
|
|
|
|
for _, match in ipairs(FindPatterns("Main.cfg", "(%w*)%s*=%s*\"?([^\"%s]*)\"?")) do
|
|
|
|
GameConfig[match[1]] = match[2]
|
2022-04-04 01:58:10 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
RefreshConfig()
|