Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setBackgroundColor(colors.black)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1, 1)
- proceed = false
- if (fs.exists("Lightspeed")) then
- print("Lightspeed is already installed, would you like to uninstall it? (y/n)")
- write("> ")
- local c = read()
- if (c == "y") then
- print("Uninstalling Lightspeed...")
- write("Deleting main program...")
- shell.run("delete Lightspeed")
- print("DONE!")
- write("Deleting pShip1.img...")
- shell.run("delete pShip1.img")
- print("DONE!")
- write("Deleting eShip1.img...")
- shell.run("delete eShip1.img")
- print("DONE!")
- print(" ")
- print("Lightspeed is uninstalled. Press any key to close...")
- os.pullEventRaw()
- term.clear()
- term.setCursorPos(1, 1)
- else
- print("Not uninstalling. Press any key to close...")
- os.pullEventRaw()
- term.clear()
- term.setCursorPos(1, 1)
- end
- else
- print("Lightspeed is not yet installed.")
- print("Would you like to install it? (y/n)")
- write("> ")
- local c = read()
- if (c == "y") then
- proceed = true
- else
- print("Not installing. Press any key to close...")
- os.pullEventRaw()
- term.clear()
- term.setCursorPos(1, 1)
- end
- end
- if (proceed == true) then
- print("Installing Lightspeed...")
- write("Downloading main program...")
- shell.run("pastebin get 3FNwiPA6 Lightspeed")
- print("DONE!")
- write("Downloading pShip1.img...")
- shell.run("pastebin get KRwgnS35 pShip1.img")
- print("DONE!")
- write("Downloading eShip1.img...")
- shell.run("pastebin get ut2kB9DX eShip1.img")
- print("DONE!")
- print(" ")
- print("Done installing. Press any key to close...")
- os.pullEventRaw()
- term.clear()
- term.setCursorPos(1, 1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement