mirror of
https://github.com/kepler155c/opus
synced 2025-10-16 00:07:39 +00:00
builder upgrade
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user