Update sPhone.lua

This commit is contained in:
Ale2610 2015-08-29 16:17:03 +02:00
parent a18a84edcf
commit 48cfeb0960

View file

@ -496,14 +496,15 @@ local function kernel()
if rServer ~= "Success!" then if rServer ~= "Success!" then
print("Username already exists") print("Username already exists")
print("Retry later in the app sID") print("Retry later in the app sID")
sleep(1) sleep(2)
end else
local f = fs.open("/.sPhone/config/username","w") local f = fs.open("/.sPhone/config/username","w")
f.write(name) f.write(name)
f.close() f.close()
local pwf = fs.open("/.sPhone/config/.sIDPw", "w") local pwf = fs.open("/.sPhone/config/.sIDPw", "w")
pwf.write(base64.encode(pw)) pwf.write(base64.encode(pw))
pwf.close() pwf.close()
end
else else
term.setBackgroundColor(colors.white) term.setBackgroundColor(colors.white)
term.clear() term.clear()
@ -536,8 +537,11 @@ local function kernel()
end end
end end
end end
term.setCursorPos(1,13)
term.clearLine()
sertextext.center(13," All Set!") sertextext.center(13," All Set!")
term.setCursorPos(1,14)
term.clearLine()
sertextext.center(14," Have fun with sPhone") sertextext.center(14," Have fun with sPhone")
sPhone.user = name sPhone.user = name
sleep(2) sleep(2)