mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
Just: Release Changelog notes + derp fix.
This commit is contained in:
@@ -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