mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-31 18:31:04 +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
|
@ -96,7 +96,12 @@ void parseContentInfo(ContentSpec &spec)
|
|||
|
||||
Settings conf;
|
||||
if (!conf_path.empty() && conf.readConfigFile(conf_path.c_str())) {
|
||||
if (conf.exists("name"))
|
||||
if (conf.exists("title"))
|
||||
spec.title = conf.get("title");
|
||||
else if (spec.type == "game" && conf.exists("name"))
|
||||
spec.title = conf.get("name");
|
||||
|
||||
if (spec.type != "game" && conf.exists("name"))
|
||||
spec.name = conf.get("name");
|
||||
|
||||
if (conf.exists("description"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue