fixed sum stuff

This commit is contained in:
2025-12-23 12:46:47 -08:00
parent 9df738465a
commit aa64d18060
9 changed files with 15514 additions and 20 deletions

View File

@@ -1323,7 +1323,18 @@ function lib.getENV(fspath, term_override, perms)
global.network = network
end
if app and perms.app then
global.app = app
global.app = deepcopy(app)
global.app.launch = function(id,app_perms) app.launch(id,app_perms,perms) end
end
if global and not perms.peripheral then
global.peripheral.wrap = function () end
global.peripheral.find = function () end
global.peripheral.getNames = function () return {} end
global.peripheral.getType = function () end
global.peripheral.isPresent = function () return false end
global.peripheral.hasType = function () end
global.peripheral.call = function () end
global.peripheral.getMethods = function () end
end
global.settings = settings
global._ENV = global