Update sPhone.lua

This commit is contained in:
Ale32bit 2015-09-22 18:49:37 +02:00
parent ddfc2c918c
commit 5f181defbb

View file

@ -36,12 +36,20 @@ end
local function kernel() local function kernel()
_G.sPhone = { _G.sPhone = {
version = "Alpha 2.3", version = "Alpha 2.3.1",
user = "Run sID", user = "Run sID",
devMode = false, devMode = false,
mainTerm = term.current() mainTerm = term.current()
} }
if not fs.exists("/.sPhone/autorun") then
fs.makeDir("/.sPhone/autorun")
end
for k, v in pairs(fs.list("/.sPhone/autorun")) do
dofile("/.sPhone/autorun/"..v)
end
if runningOnStartup then if runningOnStartup then
fs.open("/startup","r") fs.open("/startup","r")
end end