From bc3dccca5c66019dfbd218f39f086f7384f97d88 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Mon, 12 Sep 2022 19:24:54 +0200 Subject: Mainmenu: Properly sort mods and games (#12758) This also removes trivial and unused pkgmgr functions Fixes a bug caused by sorting in 2133fc8 --- doc/menu_lua_api.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/menu_lua_api.txt b/doc/menu_lua_api.txt index a7722be6e..7c820b0cd 100644 --- a/doc/menu_lua_api.txt +++ b/doc/menu_lua_api.txt @@ -247,9 +247,9 @@ Package - content which is downloadable from the content db, may or may not be i * returns path to global gamepath * core.get_texturepath() (possible in async calls) * returns path to default textures -* core.get_game(index) +* core.get_games() -> table of all games (possible in async calls) * `name` in return value is deprecated, use `title` instead. - * returns: + * returns a table (ipairs) with values: { id = , @@ -261,8 +261,6 @@ Package - content which is downloadable from the content db, may or may not be i DEPRECATED: addon_mods_paths = {[1] = ,}, } - -* core.get_games() -> table of all games in upper format (possible in async calls) * core.get_content_info(path) * returns @@ -323,7 +321,7 @@ core.get_worlds() -> list of worlds (possible in async calls) gameid = , }, } -core.create_world(worldname, gameid) +core.create_world(worldname, gameid, init_settings) core.delete_world(index) -- cgit v1.2.3