| 129 | } |
| 130 | |
| 131 | QJsonObject libDownloadInfoToJson(MojangLibraryDownloadInfo::Ptr libinfo) |
| 132 | { |
| 133 | QJsonObject out; |
| 134 | if(libinfo->artifact) |
| 135 | { |
| 136 | out.insert("artifact", downloadInfoToJson(libinfo->artifact)); |
| 137 | } |
| 138 | if(libinfo->classifiers.size()) |
| 139 | { |
| 140 | QJsonObject classifiersOut; |
| 141 | for(auto iter = libinfo->classifiers.begin(); iter != libinfo->classifiers.end(); iter++) |
| 142 | { |
| 143 | classifiersOut.insert(iter.key(), downloadInfoToJson(iter.value())); |
| 144 | } |
| 145 | out.insert("classifiers", classifiersOut); |
| 146 | } |
| 147 | return out; |
| 148 | } |
| 149 | |
| 150 | QJsonObject assetIndexToJson(MojangAssetIndexInfo::Ptr info) |
| 151 | { |
no test coverage detected