1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-16 00:07:39 +00:00

builder upgrade

This commit is contained in:
kepler155c@gmail.com
2017-04-01 19:21:49 -04:00
parent 74e93068fb
commit 72bd16502b
14 changed files with 977 additions and 160 deletions

View File

@@ -4,5 +4,5 @@ require = requireInjector(getfenv(1))
local Peripheral = require('peripheral')
for _,side in pairs(peripheral.getNames()) do
Peripheral.addDevice(side)
Peripheral.addDevice(device, side)
end

View File

@@ -90,6 +90,16 @@ function os.isPocket()
return not not pocket
end
function os.getVersion()
if _CC_VERSION then
return tonumber(_CC_VERSION)
end
if _HOST then
return tonumber(_HOST:gmatch('[%d]+%.?[%d][%d]', '%1')())
end
return 1.7
end
function os.registerApp(entry)
local apps = { }
Config.load('apps', apps)