diff options
Diffstat (limited to 'builtin/mainmenu/pkgmgr.lua')
-rw-r--r-- | builtin/mainmenu/pkgmgr.lua | 7 |
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 |