mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
update grab system
This commit is contained in:
parent
4dad75e76b
commit
748d80da8e
4
grab.lua
4
grab.lua
|
@ -174,7 +174,7 @@ if(args[1]=="install") then
|
|||
local to_add={}
|
||||
for this_lib in pairs(to_install) do
|
||||
if(not db[this_lib]) then
|
||||
print("Library " .. this_lib .. " not found.")
|
||||
print("Library '" .. this_lib .. "' not found.")
|
||||
return
|
||||
else
|
||||
if(db[this_lib].requires) then
|
||||
|
@ -226,8 +226,10 @@ if(args[1]=="install") then
|
|||
local ok,result,code=download(UrlGenerator("Kiritow/OpenComputerScripts","master",toDownload))
|
||||
if(not ok) then
|
||||
print("[Download Failed] " .. result)
|
||||
return
|
||||
elseif(code~=200) then
|
||||
print("[Download Failed] response code " .. code .. " is not 200.")
|
||||
return
|
||||
else
|
||||
if(type(v)=="string") then
|
||||
local f=io.open(v,"w")
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
}
|
||||
},
|
||||
["checkarg"]={
|
||||
title="Check Arugment",
|
||||
title="Arugment Checker",
|
||||
info="For easier argument checking",
|
||||
files={
|
||||
"checkarg.lua"
|
||||
|
@ -23,6 +23,30 @@
|
|||
"checkarg"
|
||||
}
|
||||
},
|
||||
["libgpu"]={
|
||||
title="LibGPU",
|
||||
info="For easier gpu programming",
|
||||
files={
|
||||
"libgpu.lua"
|
||||
}
|
||||
},
|
||||
["simple_data_structure"]={
|
||||
title="Simple Lua Data Structure",
|
||||
info="Provides class(...),queue and vector",
|
||||
files={
|
||||
"class.lua", "queue.lua", "vector.lua"
|
||||
}
|
||||
}
|
||||
["minesweeper"]={
|
||||
title="Mine Sweeper",
|
||||
info="A simple game",
|
||||
files={
|
||||
"MineSweeper.lua"
|
||||
},
|
||||
requires={
|
||||
"libgpu","libevent","simple_data_structure"
|
||||
}
|
||||
},
|
||||
["drone"]={
|
||||
title="Drone",
|
||||
info="Drone console and bios",
|
||||
|
|
Loading…
Reference in New Issue
Block a user