Add lscor to Halyde #18
@@ -1,14 +1,6 @@
|
|||||||
_G.cormgr = {}
|
|
||||||
_G.cormgr.corList = {}
|
|
||||||
|
|
||||||
--local ocelot = component.proxy(component.list("ocelot")())
|
|
||||||
|
|
||||||
local component = import("component")
|
|
||||||
local filesystem = import("filesystem")
|
|
||||||
local json = import("json")
|
|
||||||
local gpu = component.proxy(component.list("gpu")())
|
local gpu = component.proxy(component.list("gpu")())
|
||||||
|
|
||||||
function _G.cormgr.loadCoroutine(path, ...)
|
function _G.cormgr.loadCoroutine(path,...)
|
||||||
local args = {...}
|
local args = {...}
|
||||||
local cor = coroutine.create(function()
|
local cor = coroutine.create(function()
|
||||||
local result, errorMessage = xpcall(function(...)
|
local result, errorMessage = xpcall(function(...)
|
||||||
@@ -26,6 +18,7 @@ function _G.cormgr.loadCoroutine(path, ...)
|
|||||||
end
|
end
|
||||||
--import(path, table.unpack(args))
|
--import(path, table.unpack(args))
|
||||||
end)
|
end)
|
||||||
|
table.insert(_G.cormgr.labelList, string.match(tostring(path), "([^/]+)%.lua$"))
|
||||||
table.insert(_G.cormgr.corList, cor)
|
table.insert(_G.cormgr.corList, cor)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user