| 95 | } |
| 96 | |
| 97 | QJsonObject 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 | |
| 110 | MojangLibraryDownloadInfo::Ptr libDownloadInfoFromJson(const QJsonObject &libObj) |
| 111 | { |
no test coverage detected