CCEmuX integration

This commit is contained in:
kepler155c@gmail.com
2019-03-24 03:45:02 -04:00
parent 81abec75f5
commit 1961882327
3 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
local ccemux = _G.ccemux
local fs = _G.fs
local peripheral = _G.peripheral
if ccemux then
-- add a System setup tab
fs.mount('sys/apps/system/ccemux.lua', 'linkfs', 'packages/ccemux/system/ccemux.lua')
local Config = require('config')
for k,v in pairs(Config.load('ccemux')) do
if not peripheral.getType(k) then
ccemux.attach(k, v.type, v.args)
end
end
end