CCEmuX integration
This commit is contained in:
17
ccemux/autorun/startup.lua
Normal file
17
ccemux/autorun/startup.lua
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user