Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function menu(id, text)
- if sid == id then
- print("["..text.."]")
- else
- print(" "..text)
- end
- end
- function installer()
- sid = 0
- while true do
- path = shell.dir()
- term.clear()
- term.setCursorPos(1,1)
- print("CCiri Installer")
- menu(0, "Install")
- menu(1, "Install BETA")
- menu(2, "Abort")
- local sEvent, param = os.pullEvent("key")
- if(sEvent == "key") then
- if(param == 200) then
- if sid > 0 then
- sid = sid - 1
- elseif sid == 0 then
- sid = 2
- end
- elseif (param == 208) then
- if sid < 2 then
- sid = sid + 1
- elseif sid == 2 then
- sid = 0
- end
- elseif (param == 28) then
- if sid == 0 then
- print("Installing...")
- shell.run("pastebin get PRUuJxf6 cciri")
- sleep(.5)
- shell.run("pastebin get zeG34tu6 load")
- sleep(.5)
- shell.run("pastebin get L9LH9pVH microphone")
- fs.makeDir(path.."/CCiri_Files")
- shell.run("move","load","CCiri_Files")
- shell.run("move","microphone","CCiri_Files")
- sleep(.5)
- print("Done! Enjoy CCiri. Rebooting.")
- sleep(4)
- shell.run("delete","installCCiri")
- os.reboot()
- elseif sid == 1 then
- print("Installing BETA...")
- shell.run("pastebin get vi275s3k cciri")
- sleep(.5)
- shell.run("pastebin get zeG34tu6 load")
- sleep(.5)
- shell.run("pastebin get L9LH9pVH microphone")
- fs.makeDir(path.."/CCiri_Files")
- shell.run("move","load","CCiri_Files")
- shell.run("move","microphone","CCiri_Files")
- sleep(.5)
- print("Done! Enjoy CCiri. Rebooting.")
- sleep(4)
- shell.run("delete","installCCiri")
- os.reboot()
- elseif sid == 2 then
- print("Aborting...")
- sleep(4)
- shell.run("delete","installCCiri")
- os.reboot()
- end
- end
- end
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- print("Proceeding to install CCiri.")
- sleep(2)
- installer()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement