Add: Website button to Game Options window for basesets.

This links to the optional "url" item in the baseset's [metadata] section.
This commit is contained in:
Peter Nelson
2023-11-28 21:07:30 +00:00
committed by Peter Nelson
parent cc528bd8fc
commit 1084ab4b66
4 changed files with 53 additions and 12 deletions

View File

@@ -55,6 +55,9 @@ bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(const IniFile &ini,
fetch_metadata("description");
this->description[std::string{}] = *item->value;
item = metadata->GetItem("url");
if (item != nullptr) this->url = *item->value;
/* Add the translations of the descriptions too. */
for (const IniItem &titem : metadata->items) {
if (titem.name.compare(0, 12, "description.") != 0) continue;