MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / readDownloadInfo

Function readDownloadInfo

launcher/minecraft/MojangVersionFormat.cpp:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

downloadInfoFromJsonFunction · 0.85
assetIndexFromJsonFunction · 0.85

Calls 1

readStringFunction · 0.70

Tested by

no test coverage detected