From 809cb9fc0bcf89d247f509a42351db102a0e278c Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 3 Feb 2019 01:49:53 +0000 Subject: Fix rename modpack dialog not appearing to take affect --- builtin/mainmenu/pkgmgr.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'builtin/mainmenu/pkgmgr.lua') diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua index 7863f1ca1..d85092457 100644 --- a/builtin/mainmenu/pkgmgr.lua +++ b/builtin/mainmenu/pkgmgr.lua @@ -22,7 +22,10 @@ function get_mods(path,retval,modpack) for _, name in ipairs(mods) do if name:sub(1, 1) ~= "." then local prefix = path .. DIR_DELIM .. name - local toadd = {} + local toadd = { + dir_name = name, + parent_dir = path, + } retval[#retval + 1] = toadd -- Get config file @@ -35,11 +38,13 @@ function get_mods(path,retval,modpack) mod_conf = Settings(prefix .. DIR_DELIM .. "modpack.conf"):to_table() if mod_conf.name then name = mod_conf.name + toadd.is_name_explicit = true end else mod_conf = Settings(prefix .. DIR_DELIM .. "mod.conf"):to_table() if mod_conf.name then name = mod_conf.name + toadd.is_name_explicit = true end end -- cgit v1.2.3