summaryrefslogtreecommitdiff
path: root/builtin/mainmenu/pkgmgr.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2019-02-03 01:49:53 +0000
committerrubenwardy <rw@rubenwardy.com>2019-02-03 13:43:00 +0000
commit809cb9fc0bcf89d247f509a42351db102a0e278c (patch)
tree76d75492b18f9affae2341fdbf72c3c86bf06687 /builtin/mainmenu/pkgmgr.lua
parent7c239767ff2e500c0bdc23c0fd0f3e8a2823c0db (diff)
downloadminetest-809cb9fc0bcf89d247f509a42351db102a0e278c.tar.gz
minetest-809cb9fc0bcf89d247f509a42351db102a0e278c.tar.bz2
minetest-809cb9fc0bcf89d247f509a42351db102a0e278c.zip
Fix rename modpack dialog not appearing to take affect
Diffstat (limited to 'builtin/mainmenu/pkgmgr.lua')
-rw-r--r--builtin/mainmenu/pkgmgr.lua7
1 files changed, 6 insertions, 1 deletions
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