v1.9.0 - Added virtual components.
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
local agcfg = {
|
||||
["halyde"] = {
|
||||
["maindir"] = "",
|
||||
["version"] = "1.8.9",
|
||||
["version"] = "1.9.0",
|
||||
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
|
||||
["directories"] = {
|
||||
"halyde/apps",
|
||||
|
||||
@@ -4,7 +4,7 @@ Ahalyde/core/
|
||||
Ahalyde/config/generate/
|
||||
Ahalyde/apps/helpdb/
|
||||
Ahalyde/apps/
|
||||
V1.8.8
|
||||
V1.9.0
|
||||
Ainit.lua
|
||||
Ahalyde/apps/helpdb/cat.txt
|
||||
Ahalyde/apps/helpdb/cd.txt
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user