aboutsummaryrefslogtreecommitdiff
path: root/src/content/subgames.h
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2022-05-21 16:23:30 +0100
committerGitHub <noreply@github.com>2022-05-21 16:23:30 +0100
commit4e9e230e34912d08ec0f0fc01d14ef80654c7cac (patch)
treeae06c4fc9971808dd0a87d07aba702d8561b05ef /src/content/subgames.h
parentdc45b85a543b4c8ad72f69a554ecfe7f0a60c533 (diff)
downloaddragonfireclient-4e9e230e34912d08ec0f0fc01d14ef80654c7cac.tar.xz
Deprecate game.conf name, use title instead (#12030)
Diffstat (limited to 'src/content/subgames.h')
-rw-r--r--src/content/subgames.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/content/subgames.h b/src/content/subgames.h
index d36b4952f..d5d168243 100644
--- a/src/content/subgames.h
+++ b/src/content/subgames.h
@@ -29,7 +29,7 @@ class Settings;
struct SubgameSpec
{
std::string id;
- std::string name;
+ std::string title;
std::string author;
int release;
std::string path;
@@ -41,20 +41,24 @@ struct SubgameSpec
std::unordered_map<std::string, std::string> addon_mods_paths;
std::string menuicon_path;
+ // For logging purposes
+ std::vector<const char *> deprecation_msgs;
+
SubgameSpec(const std::string &id = "", const std::string &path = "",
const std::string &gamemods_path = "",
const std::unordered_map<std::string, std::string> &addon_mods_paths = {},
- const std::string &name = "",
+ const std::string &title = "",
const std::string &menuicon_path = "",
const std::string &author = "", int release = 0) :
id(id),
- name(name), author(author), release(release), path(path),
+ title(title), author(author), release(release), path(path),
gamemods_path(gamemods_path), addon_mods_paths(addon_mods_paths),
menuicon_path(menuicon_path)
{
}
bool isValid() const { return (!id.empty() && !path.empty()); }
+ void checkAndLog() const;
};
SubgameSpec findSubgame(const std::string &id);