summaryrefslogtreecommitdiff
path: root/builtin/mainmenu/pkgmgr.lua
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-05-21 16:23:30 +0100
committerGitHub <noreply@github.com>2022-05-21 16:23:30 +0100
commit4e9e230e34912d08ec0f0fc01d14ef80654c7cac (patch)
treeae06c4fc9971808dd0a87d07aba702d8561b05ef /builtin/mainmenu/pkgmgr.lua
parentdc45b85a543b4c8ad72f69a554ecfe7f0a60c533 (diff)
downloadminetest-4e9e230e34912d08ec0f0fc01d14ef80654c7cac.tar.gz
minetest-4e9e230e34912d08ec0f0fc01d14ef80654c7cac.tar.bz2
minetest-4e9e230e34912d08ec0f0fc01d14ef80654c7cac.zip
Deprecate game.conf name, use title instead (#12030)
Diffstat (limited to 'builtin/mainmenu/pkgmgr.lua')
-rw-r--r--builtin/mainmenu/pkgmgr.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/builtin/mainmenu/pkgmgr.lua b/builtin/mainmenu/pkgmgr.lua
index 334fcf5f8..b2f3243c4 100644
--- a/builtin/mainmenu/pkgmgr.lua
+++ b/builtin/mainmenu/pkgmgr.lua
@@ -646,6 +646,8 @@ function pkgmgr.install_dir(type, path, basename, targetpath)
else
targetpath = core.get_gamepath() .. DIR_DELIM .. basename
end
+ else
+ error("basefolder didn't return a recognised type, this shouldn't happen")
end
-- Copy it
@@ -692,7 +694,7 @@ function pkgmgr.preparemodlist(data)
retval[#retval + 1] = {
type = "game",
is_game_content = true,
- name = fgettext("$1 mods", gamespec.name),
+ name = fgettext("$1 mods", gamespec.title),
path = gamespec.path
}
end
@@ -873,10 +875,10 @@ end
function pkgmgr.gamelist()
local retval = ""
if #pkgmgr.games > 0 then
- retval = retval .. core.formspec_escape(pkgmgr.games[1].name)
+ retval = retval .. core.formspec_escape(pkgmgr.games[1].title)
for i=2,#pkgmgr.games,1 do
- retval = retval .. "," .. core.formspec_escape(pkgmgr.games[i].name)
+ retval = retval .. "," .. core.formspec_escape(pkgmgr.games[i].title)
end
end
return retval