multi-device input support in UI

This commit is contained in:
kepler155c@gmail.com
2019-01-02 10:34:31 -05:00
parent 1aa5dfdeaf
commit 859977f75c
5 changed files with 100 additions and 51 deletions

View File

@@ -96,7 +96,7 @@ context.storage.turtleInventory = context.turtleInventory
local function loadDirectory(dir)
for _, file in pairs(fs.list(dir)) do
if not fs.isDir(fs.combine(dir, file)) then
local s, m = Util.run(_ENV, fs.combine(dir, file))
local s, m = Util.run(_ENV, fs.combine(dir, file), context)
if not s and m then
_G.printError('Error loading: ' .. file)
error(m or 'Unknown error')