Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function aw(...) return write(...) end
- local function p(...) return print(...) end
- local function s(...) return sleep(...) end
- local function tw(...) return term.write(...) end
- local function scp(...) return term.setCursorPos(...) end
- local function sbc(...) return term.setBackgroundColor(...) end
- local function stc(...) return term.setTextColor(...) end
- local function tc(...) return term.clear(...) end
- local function tcl(...) return term.clearLine(...) end
- local function r(...) return shell.run(...) end
- local function sp(...) return textutils.slowPrint(...) end
- local function sw(...) return textutils.slowWrite(...) end
- local function fse(...) return fs.exists(...) end
- local function pul(...) return paintutils.loadImage(...) end
- local function pud(...) return paintutils.drawImage(...) end
- local function pfb(...) return paintutils.drawFilledBox(...) end
- local function su(...) return os.shutdown(...) end
- local function re(...) return os.reboot(...) end
- local function pdp(...) return paintutils.drawPixel(...) end
- local w, h = term.getSize()
- function download(plik)
- if plik == "/os/main/explorer" then
- r("pastebin get za0ck7T5 /os/main/explorer")
- end
- if plik == "/os/main/menu" then
- r("pastebin get R0RDz6eh /os/main/menu")
- end
- if plik == "/startup" then
- r("pastebin get MwpLq4JP /startup")
- end
- if plik == "/User" then
- fs.makeDir("/User")
- end
- if plik == "/os/2048" then
- r("pastebin get u0urwgNc /os/2048")
- end
- if plik == "/os/icon" then
- r("pastebin get NVzDaz4M /os/icon")
- end
- if plik == "/os/luaide" then
- r("pastebin get vyAZc6tJ /os/luaide")
- end
- end
- function repair()
- local files = {"/os/2048", "/os/icon", "/os/main/explorer", "/os/main/menu", "/os/luaide", "/User", "/startup"}
- for i,file in ipairs(files) do
- if not fse(file) then
- download(file)
- end
- end
- end
- function boot()
- scp(1,1)
- sbc(colors.cyan)
- tc()
- sbc(colors.cyan)
- stc(colors.white)
- p[[NextUI 2.0 Repair Program
- System NextUI wykryl brak kluczowych plikow systemowych. Podjeta zostanie proba naprawy systemu. Nie wylaczaj komputera do zakonczenia procesu.]]
- s(1)
- sbc(colors.gray)
- textutils.slowPrint("Trwa weryfikowanie spojnosci NextUI....")
- sbc(colors.cyan)
- repair()
- s(2)
- p("Ukonczono naprawe NextUI! Ponowne uruchamianie....")
- s(1)
- re()
- end
- boot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement