This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local config = {} | |
local wsServer | |
for line in io.lines('config.ini') do | |
local key, value = line:match("^(%w+)%s*=%s*(.+)$") | |
if key and value then | |
if tonumber(value) then value = tonumber(value) end | |
if value == "true" then value = true end | |
if value == "false" then value = false end |