From 3eb363f813bfc4fbca250579848532ef296b3077 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 16 May 2018 21:52:12 +0100 Subject: Add updating to online content browser --- src/content/subgames.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/content/subgames.cpp') diff --git a/src/content/subgames.cpp b/src/content/subgames.cpp index fd6231a1f..9f05b751d 100644 --- a/src/content/subgames.cpp +++ b/src/content/subgames.cpp @@ -116,13 +116,17 @@ SubgameSpec findSubgame(const std::string &id) if (conf.exists("author")) game_author = conf.get("author"); + int game_release = 0; + if (conf.exists("release")) + game_release = conf.getS32("release"); + std::string menuicon_path; #ifndef SERVER menuicon_path = getImagePath( game_path + DIR_DELIM + "menu" + DIR_DELIM + "icon.png"); #endif return SubgameSpec(id, game_path, gamemod_path, mods_paths, game_name, - menuicon_path, game_author); + menuicon_path, game_author, game_release); } SubgameSpec findWorldSubgame(const std::string &world_path) -- cgit v1.2.3