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

Function assetIndexToJson

launcher/minecraft/MojangVersionFormat.cpp:150–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150QJsonObject assetIndexToJson(MojangAssetIndexInfo::Ptr info)
151{
152 QJsonObject out;
153 if(!info->path.isNull())
154 {
155 out.insert("path", info->path);
156 }
157 out.insert("sha1", info->sha1);
158 out.insert("size", info->size);
159 out.insert("url", info->url);
160 out.insert("totalSize", info->totalSize);
161 out.insert("id", info->id);
162 return out;
163}
164
165void MojangVersionFormat::readVersionProperties(const QJsonObject &in, VersionFile *out)
166{

Callers 1

Calls 1

insertMethod · 0.80

Tested by

no test coverage detected