aboutsummaryrefslogtreecommitdiff
path: root/builtin/common
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2022-09-12 19:24:54 +0200
committerGitHub <noreply@github.com>2022-09-12 19:24:54 +0200
commitbc3dccca5c66019dfbd218f39f086f7384f97d88 (patch)
treed61879776c3a0a79ef985f5fc431b3c3568b32af /builtin/common
parentfe13f9dfd12c0a7f08355b83e34e7dec1bfdd86d (diff)
downloadminetest-bc3dccca5c66019dfbd218f39f086f7384f97d88.tar.xz
Mainmenu: Properly sort mods and games (#12758)
This also removes trivial and unused pkgmgr functions Fixes a bug caused by sorting in 2133fc8
Diffstat (limited to 'builtin/common')
-rw-r--r--builtin/common/misc_helpers.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/builtin/common/misc_helpers.lua b/builtin/common/misc_helpers.lua
index 467f18804..720df3998 100644
--- a/builtin/common/misc_helpers.lua
+++ b/builtin/common/misc_helpers.lua
@@ -519,18 +519,6 @@ end
--------------------------------------------------------------------------------
-- mainmenu only functions
--------------------------------------------------------------------------------
-if INIT == "mainmenu" then
- function core.get_game(index)
- local games = core.get_games()
-
- if index > 0 and index <= #games then
- return games[index]
- end
-
- return nil
- end
-end
-
if core.gettext then -- for client and mainmenu
function fgettext_ne(text, ...)
text = core.gettext(text)