Legacy - Multitasking graphical OS (Alpha)
Description
Legacy AlphaThis is my next generation OS.It also has a nice looking universal graphical interface and OTA updates.But unlike VedroidOS this is not just a launcher.Since this is an alpha version, it h...
Installation
Copy one of these commands into your ComputerCraft terminal:
Pastebin:
pastebin get MM7AKF2u legacy_-_multitasking_graphical_os_(alpha)wget:
wget https://pastebin.com/raw/MM7AKF2u legacy_-_multitasking_graphical_os_(alpha)Archive:
wget https://cc.shobie.xyz/cc/get/pb-MM7AKF2u legacy_-_multitasking_graphical_os_(alpha)
Quick Install:
wget https://cc.shobie.xyz/cc/get/pb-MM7AKF2u Legacy - Multitasking graphical OS (Alpha)
Usage
Run the program after downloading
Tags
Source
View Original SourceCode Preview
local args = {...}
local path = args[1]
if path and fs.exists(path) then
local function restore(chto,kuda)
local file = fs.open(chto,"r")
Massiv = textutils.unserialise(file.readAll())
file.close()
for i=1,#Massiv do
if Massiv[i]["path"] then
if Massiv[i]['text'] then
local file = fs.open(kuda.."/"..Massiv[i]["path"],"w")
file.write(Massiv[i]["text"])
file.close()
else
fs.makeDir(kuda.."/"..Massiv[i]["path"])
end
term.write("[ ")
term.setTextColor(colors.green)
if Massiv[i]["text"] then
term.write("file")
else
term.write("dir")
end
term.setTextColor(colors.white)
term.write(" ] ")
print(Massiv[i]["path"])
end
end
end
term.setBackgroundColor(colors.black)
term.setTextColor(colors.white)
term.clear()
print("Restoring system from "..path.."...")
print(" ")
restore(path,"")
os.reboot()
else
error("Can't find system image")
end