Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(0,2)
- term.setTextColor(colors.orange)
- write(" Goldcube System Patch")
- term.setTextColor(colors.yellow)
- write("\n\n Type 'OK' to download APIs\n to 'gcpatch' folder.")
- term.setCursorPos(5,7)
- term.setTextColor(colors.white)
- local input = read()
- if input == nil or input == "" then input = " " end
- input = input:upper()
- if input == "OK" then
- term.setTextColor(colors.gray)
- shell.run("wget https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/gcstart gcpatch/gcstart")
- sleep(0.25)
- shell.run("wget https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/template/game.lua gcpatch/game.lua")
- sleep(0.25)
- shell.run("wget https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/apis/goldcubeapi gcpatch/goldcubeapi")
- term.setTextColor(colors.lime)
- write("Done. Press any button to return to shell.")
- repeat
- event, button, x, y = os.pullEvent()
- until event == "key"
- term.clear()
- term.setCursorPos(1,1)
- shell.run("rom/programs/shell.lua")
- shell.exit()
- else
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- write("Console patch cancelled.\n")
- term.setTextColor(colors.white)
- end
Add Comment
Please, Sign In to add comment