Added automatic way of generating a list of modules and adding it to the kernel
This commit is contained in:
parent
cc2ae518e2
commit
14580f7ce1
@ -1,4 +1,5 @@
|
|||||||
optimise no
|
optimise no
|
||||||
|
listmods no
|
||||||
test no
|
test no
|
||||||
log no
|
log no
|
||||||
opath kernel.lua
|
opath kernel.lua
|
||||||
|
@ -66,6 +66,13 @@ print(tostring(#tm).." modules loaded.\n")
|
|||||||
|
|
||||||
-- Generate source
|
-- Generate source
|
||||||
print("Generating source")
|
print("Generating source")
|
||||||
|
if cfg.listmods == "yes" then
|
||||||
|
ss=ss.."modules={"
|
||||||
|
for k,v in ipairs(tm) do
|
||||||
|
ss=ss..'"'..v..'",'
|
||||||
|
end
|
||||||
|
ss=ss.."}\n"
|
||||||
|
end
|
||||||
for k,v in pairs(ts) do
|
for k,v in pairs(ts) do
|
||||||
ss=ss..v
|
ss=ss..v
|
||||||
io.write(".")
|
io.write(".")
|
||||||
|
Loading…
Reference in New Issue
Block a user