1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

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.
This commit is contained in:
Paul Ouellette 2018-12-02 18:41:05 -05:00 committed by Paramat
parent f70f7875e2
commit e8eaab64a0
2 changed files with 16 additions and 11 deletions

View file

@ -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