Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- simple = {}
- -- Backing up _G
- simple.protected = _G
- simple.print = simple.protected.print
- simple.run = simple.protected.dofile
- simple.throwException = simple.protected.error
- simple.iterator = {}
- simple.iterator.keyvalue = simple.protected.pairs
- simple.iterator.numerical = simple.protected.ipairs
- simple.string = simple.protected.string
- simple.net = {}
- simple.net.open = simple.protected.rednet.open
- simple.net.close = simple.protected.rednet.open
- simple.net.status = simple.protected.rednet,isOpen
- simple.net.send = simple.protected.rednet.send
- simple.net.sendAll = simple.protected.rednet.broadcast
- simple.net.standby = simple.protected.rednet.receive
- simple.dns = {}
- simple.dns.register = simple.protected.rednet.host
- simple.dns.unregister = simple.protected.rednet.unhost
- simple.dns.lookup = simple.protected.rednet.lookup
- simple.convert = {}
- simple.convert.toNumber = simple.protected.tonumber
- simple.convert.toString = simple.protected.tostring
- simple.event = {}
- simple.event.network = "rednet_message"
- simple.event.mouse = "mouse_click"
- simple.event.keyboard = "key"
- simple.event.modem = "modem_message"
- simple.system = {}
- simple.system.handleEvent = simple.protected.os.pullEvent
- simple.system.shutdown = simple.protected.os.shutdown
- simple.system.reboot = simple.protected.os.reboot
- --simple.system.setPath = simple.protected.shell.setPath
- simple.debug = {}
- simple.debug.rawset = simple.protected.rawset
- simple.debug.rawget = simple.protected.rawget
- simple.debug.protect = simple.protected.xpcall
- simple.debug.execute = simple.protected.assert
- simple.debug.callEvent = simple.protected.os.queueEvent
- simple.import = simple.protected.os.loadAPI
- --simple.path = simple.protected.shell.path
- simple.fs = {}
- simple.fs.copy = simple.protected.fs.copy
- simple.fs.move = simple.protected.fs.move
- simple.fs.find = simple.protected.fs.find
- simple.fs.list = simple.protected.fs.list
- simple.fs.delete = simple.protected.fs.delete
- simple.fs.exists = simple.protected.fs.exists
- simple.fs.isDirectory = simple.protected.fs.isDir
- simple.download = simple.protected.http.get
- simple.upload = simple.protected.http.post
- simple.getRedstone = simple.protected.rs.getInput
- simple.setRedstone = simple.protected.rs.setOutput
- simple.openForIO = simple.protected.fs.open
- return simple
Add Comment
Please, Sign In to add comment