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 Setup (v1.4)")
- term.setTextColor(colors.yellow)
- write("\n\n Type 'OK' to install console files\n from GitHub.")
- term.setCursorPos(5,7)
- term.setTextColor(colors.yellow)
- write("> ")
- term.setTextColor(colors.white)
- local input = read()
- if input == nil or input == "" then input = " " end
- input = input:upper()
- if input == "OK" then
- local gitDirectory = "https://raw.githubusercontent.com/Missooni/Goldcube-CCTweaked-Console/main/goldcube/"
- local Files = {"gcstart","apis/palette", "apis/surface", "apis/cprint", "apis/settingfile", "apis/escalias", "apis/goldcubeapi", "apis/cfg/gcsystem", "apis/cfg/palettecfg", "apis/cfg/gcp1", "apis/cfg/gcp2", "docs/gcinfo.txt", "docs/gcplugins.nft", "template/game.lua", "template/gamefileDefault", "template/menu.nft", "template/stages/1", "template/stages/2", "template/stages/3", "template/images/img1.nft", "template/images/img2.nft", "template/images/img3.nft", "template/images/char.nft"}
- for i=1, 6 do
- table.insert(Files, "docs/startanim/"..i..".nft")
- end
- for i=1, 30 do
- table.insert(Files, "docs/gcinfo"..i..".nft")
- end
- term.setTextColor(colors.gray)
- for i=1, #Files do
- shell.run("wget "..gitDirectory..Files[i].." ".."goldcube/"..Files[i])
- sleep(0.25)
- end
- if not fs.exists("goldcube/plugins") then fs.makeDir("goldcube/plugins") end
- 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 installation cancelled.\n")
- term.setTextColor(colors.white)
- end
Add Comment
Please, Sign In to add comment