add labels to coroutines

This commit is contained in:
fluxdrive
2025-05-31 21:15:28 +02:00
committed by GitHub
parent c47a1e264b
commit 6e7de9ce6e
+1 -8
View File
@@ -1,11 +1,3 @@
_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")())
function _G.cormgr.loadCoroutine(path,...)
@@ -26,6 +18,7 @@ function _G.cormgr.loadCoroutine(path, ...)
end
--import(path, table.unpack(args))
end)
table.insert(_G.cormgr.labelList, string.match(tostring(path), "([^/]+)%.lua$"))
table.insert(_G.cormgr.corList, cor)
end