MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / readDownloadInfo

Function readDownloadInfo

launcher/minecraft/MojangVersionFormat.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64static void readDownloadInfo(MojangDownloadInfo::Ptr out, const QJsonObject &obj)
65{
66 // optional, not used
67 readString(obj, "path", out->path);
68 // required!
69 out->sha1 = requireString(obj, "sha1");
70 out->url = requireString(obj, "url");
71 out->size = requireInteger(obj, "size");
72}
73
74static void readAssetIndex(MojangAssetIndexInfo::Ptr out, const QJsonObject &obj)
75{

Callers 2

downloadInfoFromJsonFunction · 0.85
assetIndexFromJsonFunction · 0.85

Calls 1

readStringFunction · 0.70

Tested by

no test coverage detected