Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local unicode = require("unicode")
- local component = require("component")
- local computer = require("computer")
- local libcomputer = {
- address = computer.address,
- tmpAddress = computer.tmpAddress,
- shutdown = function() coroutine.yield("COMPUTER_SHUTDOWN") end,
- pushSignal = computer.pushSignal,
- pullSignal = computer.pullSignal,
- getDeviceInfo = computer.getDeviceInfo,
- freeMemory = computer.freeMemory,
- totalMemory = computer.totalMemory,
- uptime = computer.uptime,
- energy = computer.energy,
- maxEnergy = computer.maxEnergy,
- users = computer.users,
- addUser = function() end,
- removeUser = function() end,
- beep = computer.beep,
- getProgramLocations = computer.getProgramLocations,
- getArchitecture = computer.getArchitecture,
- getArchitectures = computer.getArchitectures,
- setArchitecture = function() end
- }
- local sandbox = {
- assert = assert,
- error = error, -- todo
- _G = nil,
- getmetatable = getmetatable,
- next = next,
- pairs = pairs,
- pcall = pcall,
- rawequal = rawequal,
- rawget = rawget,
- rawlen = rawlen,
- rawset = rawset,
- select = select,
- setmetatable = setmetatable,
- tonumber = tonumber,
- tostring = tostring,
- type = type,
- _VERSION = _VERSION,
- xpcall = xpcall,
- coroutine = coroutine,
- string = string,
- table = table,
- math = math,
- bit32 = bit32,
- os = {
- clock = os.clock,
- date = os.date,
- difftime = os.difftime,
- execute = nil,
- exit = nil,
- remove = nil,
- rename = nil,
- time = os.time,
- tmpname = nil
- },
- debug = debug,
- utf8 = utf8,
- checkArg = checkArg,
- component = libcomponent,
- computer = libcomputer,
- unicode = unicode
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement