From 9922be19ac75600f18b992db33344df227447a32 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 20 Apr 2017 17:43:33 +1000 Subject: [PATCH] Added support for using arbitrary build.cfg and module.cfg files --- build.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.lua b/build.lua index 40fd7aa..42a79dd 100644 --- a/build.lua +++ b/build.lua @@ -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