mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-12-06 03:07:19 +00:00
Just: Release Changelog notes + derp fix.
This commit is contained in:
1 parent
a8aae7379b
commit
871d0722eb
16 files changed
+356
-29
No files matched your search
@@ -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 "";
|
||||
}
|
||||
Reference in new issue
Block a user