1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 10:15:19 +01:00

Add updating to online content browser

This commit is contained in:
rubenwardy
2018-05-16 21:52:12 +01:00
committed by GitHub
parent 45e48295d2
commit 3eb363f813
11 changed files with 196 additions and 107 deletions

View File

@@ -49,6 +49,7 @@ std::vector<Package> getPackagesFromURL(const std::string &url)
package.type = json[i]["type"].asString();
package.shortDesc = json[i]["shortDesc"].asString();
package.url = json[i]["url"].asString();
package.release = json[i]["release"].asInt();
Json::Value jScreenshots = json[i]["screenshots"];
for (unsigned int j = 0; j < jScreenshots.size(); ++j) {