mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-22 03:54:20 -05:00
9 lines
186 B
Lua
9 lines
186 B
Lua
function component.get(addr, ctype)
|
|
for c in component.list(ctype, true) do
|
|
if c:sub(1, addr:len()) == addr then
|
|
return c
|
|
end
|
|
end
|
|
return nil, "no such component"
|
|
end
|