Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local function Type(text)
- term.clearLine()
- print(text)
- end
- function Loop()
- Type("Error Has Occured")
- Type("Options")
- Type("1 - Return to Menu")
- Type("2 - Reboot")
- Type("3 - Remove Error =WIP=")
- Type("4 - use Skeleton Desktop")
- local event, key
- repeat
- event, key = os.pullEvent("key")
- until key == keys.one or key == keys.two or key == keys.three or key == keys.four
- if key == keys.one then
- shell.run(settings.get("os_DesktopLoc"))
- elseif key == keys.two then
- shell.run("os/System/Scripts/PowerOff","restart")
- elseif key == keys.three then
- shell.run("os/System/Scripts/PowerOff", "shutdown")
- elseif key == keys.four then
- settings.load(".settings")
- settings.set("os_DesktopLoc","os/System/Programs/Desktop_1")
- settings.save(".settings")
- os.sleep(2)
- os.reboot()
- end
- Loop()
- end
- Loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement