added feature for checking if a component is virtual, and updated apps argentum and boot to comply with Halyde v3

This commit is contained in:
Ponali
2025-09-14 16:28:15 +02:00
parent d3d5f21ab1
commit 8244f1590c
3 changed files with 29 additions and 16 deletions
+14 -1
View File
@@ -19,7 +19,11 @@ function compLib.virtual.add(address, componentType, proxy)
checkArg(2, componentType, "string")
checkArg(3, proxy, "table")
proxy["address"] = address
componentlib.additions[address] = {["componentType"] = componentType, ["proxy"] = proxy}
local proc
if _PUBLIC.tsched then
proc = _PUBLIC.tsched.getCurrentTask()
end
componentlib.additions[address] = {["componentType"] = componentType, ["proxy"] = proxy, ["proc"] = proc}
if componentlib.removals[address] then
componentlib.removals[address] = nil
end
@@ -34,6 +38,15 @@ function compLib.virtual.remove(address)
end
end
function compLib.virtual.check(address)
checkArg(1, address, "string")
if _G.componentlib.additions[address] then
return true, _G.componentlib.additions[address].proc
else
return false
end
end
function compLib.list(componentType)
checkArg(1, componentType, "string", "nil")
local componentList = table.copy(LLcomponent.list(componentType))