Update sPhone.lua

This commit is contained in:
Ale32bit 2016-11-01 17:33:42 +01:00 committed by GitHub
parent 8045b0a2e1
commit 8e2cb8c4ca

View file

@ -806,16 +806,18 @@ end
term.setTextColor(colors.white) term.setTextColor(colors.white)
term.clear() term.clear()
term.setCursorPos(1,1) term.setCursorPos(1,1)
local homePath = sPhone.getDefaultApp("home")
if not sPhone.safeMode then if not sPhone.safeMode then
if fs.exists(sPhone.getDefaultApp("home")) then if not fs.exists(homePath) then
shell.run(sPhone.getDefaultApp("home")) homePath = "/.sPhone/apps/home"
else
shell.run("/.sPhone/apps/home")
end end
else else
shell.run("/.sPhone/apps/home") homePath = "/.sPhone/apps/home"
end end
temp.set("homePID",task.add(function() shell.run(homePath) end))
task.run()
end end
sPhone.inHome = false sPhone.inHome = false
end end