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

Function downloadInfoToJson

launcher/minecraft/MojangVersionFormat.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97QJsonObject downloadInfoToJson(MojangDownloadInfo::Ptr info)
98{
99 QJsonObject out;
100 if(!info->path.isNull())
101 {
102 out.insert("path", info->path);
103 }
104 out.insert("sha1", info->sha1);
105 out.insert("size", info->size);
106 out.insert("url", info->url);
107 return out;
108}
109
110MojangLibraryDownloadInfo::Ptr libDownloadInfoFromJson(const QJsonObject &libObj)
111{

Callers 2

libDownloadInfoToJsonFunction · 0.85

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected