| 148 | } |
| 149 | |
| 150 | QJsonObject 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 | |
| 165 | void MojangVersionFormat::readVersionProperties(const QJsonObject &in, VersionFile *out) |
| 166 | { |
no test coverage detected