Added support for using arbitrary build.cfg and module.cfg files

This commit is contained in:
Izaya 2017-04-20 17:43:33 +10:00
parent 6bcf6f19a2
commit 9922be19ac
1 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,9 @@ ts={}
tA = {...}
ss=""
cfg={}
f=io.open("build.cfg","rb")
cfgfile = tA[1] or "build.cfg"
modfile = tA[2] or "modules.cfg"
f=io.open(cfgfile,"rb")
repeat
line = f:read("*l")
if line ~= nil then
@ -35,7 +37,7 @@ print()
-- Module list
print("Reading modules to load")
tm={}
f=io.open("modules.cfg","rb")
f=io.open(modfile,"rb")
function nl()
return f:read("*l")
end