Just: Release Changelog notes + derp fix.

This commit is contained in:
StackZ committed 2020-12-23 23:40:04 +01:00
1 parent a8aae7379b
commit 871d0722eb
16 files changed
+356 -29

No files matched your search

+16
View File
@@ -543,4 +543,20 @@ std::vector<std::string> Store::GetScreenshotNames(int index) const {
}
return screenshotNames;
}
/*
Get the update notes of an entry.
int index: The Entry Index.
*/
std::string Store::GetReleaseNotes(int index) const {
if (!this->valid) return "";
if (index > (int)this->storeJson["storeContent"].size() - 1) return ""; // Empty.
if (this->storeJson["storeContent"][index]["info"].contains("releasenotes") && this->storeJson["storeContent"][index]["info"]["releasenotes"].is_string()) {
return this->storeJson["storeContent"][index]["info"]["releasenotes"];
}
return "";
}