Commit e5cced64 authored by Danny SMc's avatar Danny SMc 🎧

Update uRetrieve

added uOS
parent b3ff240e
......@@ -38,6 +38,8 @@ term.setCursorPos(1,9)
term.write("> 4. uNotepad -> File Taking, Made Easy!")
term.setCursorPos(1.10)
term.write("> 5. uChat -> Chat with people in the overworld")
term.setCursorPos(1,11)
term.write("> 6. uOS -> Simplstic Operating System")
term.setCursorPos(1,16)
term.setTextColour(colours.lime)
term.write("Choose an option using the numbers")
......@@ -117,4 +119,18 @@ elseif param1 == "5" then
term.write("> ~Done, file saved as: 'uChat'~")
sleep(1.5)
os.reboot()
elsif param1 == "6" then
term.setCursorPos(1,18)
term.write("> ~Downloading requested program...~")
sleep(1.5)
fileData4 = http.get("https://raw.github.com/dannysmc95/uprograms/master/uOS")
fileContent4 = fileData4.readAll()
local file = fs.open("uOS", "w")
file.write(fileContent4)
file.close()
term.setCursorPos(1,18)
term.clearLine()
term.write("> ~Done, file saved as: 'uOS'~")
sleep(1.5)
os.reboot()
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment