From 5f181defbbfad21e19a32bb90753f5e61aa3fc1a Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Tue, 22 Sep 2015 18:49:37 +0200 Subject: [PATCH] Update sPhone.lua --- src/sPhone.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/sPhone.lua b/src/sPhone.lua index 2059e28..76d2c28 100644 --- a/src/sPhone.lua +++ b/src/sPhone.lua @@ -36,12 +36,20 @@ end local function kernel() _G.sPhone = { - version = "Alpha 2.3", + version = "Alpha 2.3.1", user = "Run sID", devMode = false, 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 fs.open("/startup","r") end