v1.9.0 - Added virtual components.

This commit is contained in:
TheWahlolly
2025-06-15 07:59:24 +03:00
parent 370027ca37
commit e4cf929fce
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.8.9"
_G._OSVERSION = "Halyde 1.9.0"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat
+5 -5
View File
@@ -8,8 +8,8 @@ else
LLcomponent = component
end
local ocelot = LLcomponent.proxy(LLcomponent.list("ocelot")())
ocelot.log("loaded")
--local ocelot = LLcomponent.proxy(LLcomponent.list("ocelot")())
--ocelot.log("loaded")
_G.componentlib = {["additions"] = {}, ["removals"] = {}}
compLib.virtual = {}
@@ -54,7 +54,7 @@ end
function compLib.proxy(address)
if componentlib.additions[address] then
ocelot.log("vcomponent")
--ocelot.log("vcomponent")
return componentlib.additions[address].proxy
else
return LLcomponent.proxy(address)
@@ -62,9 +62,9 @@ function compLib.proxy(address)
end
function compLib.invoke(address, funcName, ...)
ocelot.log("Invoking " .. funcName .. " from " .. address)
--ocelot.log("Invoking " .. funcName .. " from " .. address)
if componentlib.additions[address] then
ocelot.log("vcomponent")
--ocelot.log("vcomponent")
return componentlib.additions[address].proxy[funcName](...)
else
return LLcomponent.invoke(address, funcName, ...)