From 57b7493c81238d13610b37dc0b700ec158002906 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Mon, 18 Jul 2016 13:30:48 +0200 Subject: [PATCH] Update sPhone.lua --- src/sPhone.lua | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/sPhone.lua b/src/sPhone.lua index a6e2c89..58cc506 100644 --- a/src/sPhone.lua +++ b/src/sPhone.lua @@ -20,14 +20,6 @@ local function kernel() sPhone.defaultTheme = sPhone.theme - if not fs.exists("/.sPhone/config/newIDSystem") then - fs.delete("/.sPhone/config/username") - fs.delete("/.sPhone/config/.sIDpw") - f = fs.open("/.sPhone/config/newIDSystem","w") - f.write("Ignore Me. I just check if you use the new Sertex ID system to fix password issues") - f.close() - end - if not fs.exists("/.sPhone/config/newPassword") and fs.exists("/.sPhone/.password") then fs.move("/.sPhone/.password","/.sPhone/config/.password") f = fs.open("/.sPhone/config/newPassword","w") @@ -862,6 +854,19 @@ end local name + term.setBackgroundColor(sPhone.theme["backgroundColor"]) + term.clear() + sPhone.header("Setup") + term.setCursorPos(1,1) + term.setTextColor(sPhone.theme["text"]) + term.setCursorPos(2,3) + visum.align("center","Username",false,3) + term.setCursorPos(2,5) + local newUsername = read() + local f = fs.open("/.sPhone/config/username","w") + f.write(newUsername) + f.close() + if fs.exists("/.sPhone/config/username") then local f = fs.open("/.sPhone/config/username","r") name = f.readLine()