Update sPhone.lua
This commit is contained in:
parent
8045b0a2e1
commit
8e2cb8c4ca
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue