mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Deprecate game.conf name, use title instead (#12030)
This commit is contained in:
parent
dc45b85a54
commit
4e9e230e34
12 changed files with 90 additions and 31 deletions
|
@ -62,7 +62,8 @@ Where `<gameid>` is unique to each game.
|
|||
The game directory can contain the following files:
|
||||
|
||||
* `game.conf`, with the following keys:
|
||||
* `name`: Required, a human readable title to address the game, e.g. `name = Minetest`.
|
||||
* `title`: Required, a human-readable title to address the game, e.g. `title = Minetest Game`.
|
||||
* `name`: (Deprecated) same as title.
|
||||
* `description`: Short description to be shown in the content tab
|
||||
* `allowed_mapgens = <comma-separated mapgens>`
|
||||
e.g. `allowed_mapgens = v5,v6,flat`
|
||||
|
|
|
@ -246,13 +246,14 @@ Package - content which is downloadable from the content db, may or may not be i
|
|||
* core.get_texturepath() (possible in async calls)
|
||||
* returns path to default textures
|
||||
* core.get_game(index)
|
||||
* `name` in return value is deprecated, use `title` instead.
|
||||
* returns:
|
||||
|
||||
{
|
||||
id = <id>,
|
||||
path = <full path to game>,
|
||||
gamemods_path = <path>,
|
||||
name = <name of game>,
|
||||
title = <title of game>,
|
||||
menuicon_path = <full path to menuicon>,
|
||||
author = "author",
|
||||
DEPRECATED:
|
||||
|
@ -264,8 +265,9 @@ Package - content which is downloadable from the content db, may or may not be i
|
|||
* returns
|
||||
|
||||
{
|
||||
name = "name of content",
|
||||
name = "technical_id",
|
||||
type = "mod" or "modpack" or "game" or "txp",
|
||||
title = "Human readable title",
|
||||
description = "description",
|
||||
author = "author",
|
||||
path = "path/to/content",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue