From 62a8b83c142161369a3b12e5eb007f4c3f8df106 Mon Sep 17 00:00:00 2001 From: Ale32bit Date: Sun, 11 Oct 2015 11:30:42 +0200 Subject: [PATCH] Update sPhone.lua --- src/sPhone.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sPhone.lua b/src/sPhone.lua index 36613ac..b7dc4c3 100644 --- a/src/sPhone.lua +++ b/src/sPhone.lua @@ -44,8 +44,8 @@ local function recovery() print("2: Update sPhone") print("3: Continue Booting") while true do - local _, k = os.pullEvent("char") - if k == 1 then + local _, k = os.pullEvent("key") + if k == 2 then for k, v in pairs(fs.list("/")) do if not fs.isReadOnly(v) then fs.delete(v) @@ -54,9 +54,9 @@ local function recovery() print("Installing sPhone...") sleep(0.5) setfenv(loadstring(http.get("https://raw.githubusercontent.com/Sertex-Team/sPhone/master/src/installer.lua").readAll()),getfenv())() - elseif k == 2 then - setfenv(loadstring(http.get("https://raw.githubusercontent.com/Sertex-Team/sPhone/master/src/installer.lua").readAll()),getfenv())() elseif k == 3 then + setfenv(loadstring(http.get("https://raw.githubusercontent.com/Sertex-Team/sPhone/master/src/installer.lua").readAll()),getfenv())() + elseif k == 4 then break end end