Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- files = {}
- --IOS Files--
- files["ios"] = "rmnHYSkq"
- files["iostabs"] = "xSRZrcp6"
- files["iosvars"] = "7KuBG4NH"
- files["iosutils"] = "UHb5eAEx"
- files["iostabsinit"] = "6hcTn9T0"
- --App Files--
- files["message"] = "D3sCfErD"
- files["calculator"] = "RmFguhxP"
- files["appstore"] = "KihpNLf8"
- files["settings"] = "QAvxJXTE"
- files["editor"] = "cZauu9Xm"
- --Image Files--
- files["message.nfp"] = "Ezm4rXXv"
- files["calculator.nfp"] = "9p8s7bxb"
- files["appstore.nfp"] = "sRA16beb"
- files["settings.nfp"] = "L7hfnHB1"
- files["editor.nfp"] = "Z8JbW7zn"
- w, h = term.getSize()
- if not fs.exists("luaide") then
- shell.run("pastebin get vyAZc6tJ luaide")
- end
- filenum = 0
- for i, v in pairs(files) do
- filenum = filenum + 1
- end
- function progressBar()
- term.setCursorPos(1, h)
- for n = 1, (num / filenum) * w do
- term.write(" ")
- end
- end
- num = 1
- for i, v in pairs(files) do
- term.clear()
- term.setCursorPos(1, 1)
- term.setBackgroundColor(colors.lightGray)
- term.write("Downloading files...")
- if fs.exists(i) then
- term.setBackgroundColor(colors.red)
- progressBar()
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1, h - 4)
- print("File " .. i .. " already exists. Delete original file or rename?")
- term.setCursorPos(1, h - 1)
- term.write("Delete Rename")
- issue = true
- while issue do
- select = {os.pullEvent("mouse_click")}
- if select[3] >= 1 and select[3] <= 6 and select[4] == h - 1 then
- shell.run("delete " .. i)
- issue = false
- elseif select[3] >= 10 and select[3] <= 15 and select[4] == h - 1 then
- term.setCursorPos(1, h - 1)
- term.write("Input new filename: ")
- input = read()
- shell.run("copy " .. i .. " " .. input)
- shell.run("delete " .. i)
- issue = false
- end
- end
- else
- term.setBackgroundColor(colors.green)
- progressBar()
- end
- term.setBackgroundColor(colors.black)
- term.setCursorPos(1, 4)
- shell.run("pastebin get " .. v .. " " .. i)
- num = num + 1
- end
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- print("IOS files downloaded, run as \"ios\"")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement