OC-MultICE/modules/util/sinit.lua

14 lines
234 B
Lua

s("init",function()
local f=fopen("boot:/init.cfg","rb")
write("")
if f then
local c=freadall(f)
for l in c:gmatch("[^\n]+") do
write("[init] "..l..": ")
local pf=fload(l)
print(pcall(pf))
C.yield()
end
end
end)