summaryrefslogtreecommitdiff
path: root/builtin/mainmenu/pkgmgr.lua
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2018-12-02 18:41:05 -0500
committerParamat <paramat@users.noreply.github.com>2018-12-02 23:41:05 +0000
commite8eaab64a09462870f95d3e6703aab378e248ddc (patch)
treea2fac6c04e8c80bf677ce838ba0009ff7255c198 /builtin/mainmenu/pkgmgr.lua
parentf70f7875e2a2e49f80470832ae97e73f171d6460 (diff)
downloadminetest-e8eaab64a09462870f95d3e6703aab378e248ddc.tar.gz
minetest-e8eaab64a09462870f95d3e6703aab378e248ddc.tar.bz2
minetest-e8eaab64a09462870f95d3e6703aab378e248ddc.zip
Improve world configure menu (#7922)
Replace `Subgame mods` with <game name> mods. Display game description on left instead of dependencies. Fix double DIR_DELIM in some paths.
Diffstat (limited to 'builtin/mainmenu/pkgmgr.lua')
-rw-r--r--builtin/mainmenu/pkgmgr.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua
index eb062ccc8..482a21e37 100644
--- a/builtin/mainmenu/pkgmgr.lua
+++ b/builtin/mainmenu/pkgmgr.lua
@@ -21,7 +21,7 @@ function get_mods(path,retval,modpack)
for _, name in ipairs(mods) do
if name:sub(1, 1) ~= "." then
- local prefix = path .. DIR_DELIM .. name .. DIR_DELIM
+ local prefix = path .. DIR_DELIM .. name
local toadd = {}
retval[#retval + 1] = toadd
@@ -39,7 +39,7 @@ function get_mods(path,retval,modpack)
if modpack ~= nil and modpack ~= "" then
toadd.modpack = modpack
else
- local modpackfile = io.open(prefix .. "modpack.txt")
+ local modpackfile = io.open(prefix .. DIR_DELIM .. "modpack.txt")
if modpackfile then
modpackfile:close()
toadd.type = "modpack"
@@ -532,7 +532,8 @@ function pkgmgr.preparemodlist(data)
retval[#retval + 1] = {
type = "game",
is_game_content = true,
- name = fgettext("Subgame Mods")
+ name = fgettext(gamespec.name .. " mods"),
+ path = gamespec.path
}
end