Update sPhone.lua

This commit is contained in:
Ale32bit 2015-11-20 18:38:55 +01:00
parent 522016322c
commit d22999053a

View file

@ -580,6 +580,10 @@ end
--f.write("Ignore me")
--f.close()
--end
if not sPhone.locked then
login()
end
if fs.exists("/.sPhone/config/resetDBNews") then
fs.delete("/.sPhone/config/resetDBNews")
end
@ -691,6 +695,7 @@ end
end
function login()
sPhone.locked = true
if fs.exists("/.sPhone/config/.password") then
while true do
term.clear()
@ -876,10 +881,13 @@ end
term.clearLine()
sertextext.center(14," Have fun with sPhone")
sleep(2)
home()
sPhone.locked = false
return
end
end
sPhone.lock = login
local newVersion = http.get("https://raw.githubusercontent.com/Sertex-Team/sPhone/master/src/version").readLine()
if newVersion ~= sPhone.version then
sPhone.newUpdate = true
@ -887,7 +895,7 @@ end
sPhone.newUpdate = false
end
login()
home()
end