Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setfenv(loadfile("/rom/programs/shell"),
- setmetatable(
- {
- pcall = function(_f, ...)
- local env = getfenv(_f)
- env.shell = env.shell or shell
- local co = coroutine.create(_f)
- local err, ok = coroutine.resume(co, ...)
- while err and coroutine.status(co) ~= "dead" do
- err, ok = coroutine.resume(co, coroutine.yield())
- end
- return ok
- end;
- },
- {
- __index = _G
- }
- )
- )()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement