mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-12-26 10:18:07 +11:00
made fserv actually able to save/load configs
This commit is contained in:
parent
a509630361
commit
80a059342e
@ -18,7 +18,7 @@ end
|
||||
local function loadConfig()
|
||||
local fobj = io.open("/etc/fserv.cfg","rb")
|
||||
if fobj then
|
||||
config = serial.unserialize(fobj:read("*a")) or config
|
||||
cfg = serial.unserialize(fobj:read("*a")) or cfg
|
||||
fobj:close()
|
||||
end
|
||||
end
|
||||
@ -26,7 +26,7 @@ end
|
||||
local function writeConfig()
|
||||
local fobj = io.open("/etc/fserv.cfg","wb")
|
||||
if fobj then
|
||||
fobj:write(serial.serialize(config))
|
||||
fobj:write(serial.serialize(cfg))
|
||||
fobj:close()
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user