summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-11-01 15:27:21 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-11-02 12:16:09 -0500
commit06363cf65a21ef4a28cdb7e7b5edf939fdaf3d71 (patch)
tree1bbf61d4671dcee023f7bfc18ad74101506fa4df /plugins
parent0aa29030da68a22c97b6e65e30217d8b44319e1e (diff)
luaengine: add basic table return support (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/data/init.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/data/init.lua b/plugins/data/init.lua
index 9387a469744..4ef3675968f 100644
--- a/plugins/data/init.lua
+++ b/plugins/data/init.lua
@@ -35,7 +35,7 @@ function data.startplugin()
end
end)
emu.register_callback(function(set)
- local ret
+ local ret = {}
if set == "" then
set = emu.romname()
end
@@ -54,11 +54,7 @@ function data.startplugin()
end
local name = scr.check(setname, softname)
if name then
- if not ret then
- ret = name
- else
- ret = ret .. "," .. name
- end
+ ret[#ret + 1] = name
valid_lst[#valid_lst + 1] = scr
end
end