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.clear()
term.setCursorPos(1,1)
local homePath = sPhone.getDefaultApp("home")
if not sPhone.safeMode then
if fs.exists(sPhone.getDefaultApp("home")) then
shell.run(sPhone.getDefaultApp("home"))
else
shell.run("/.sPhone/apps/home")
if not fs.exists(homePath) then
homePath = "/.sPhone/apps/home"
end
else
shell.run("/.sPhone/apps/home")
homePath = "/.sPhone/apps/home"
end
temp.set("homePID",task.add(function() shell.run(homePath) end))
task.run()
end
sPhone.inHome = false
end