| 121 | } |
| 122 | |
| 123 | void processPackPNG(TexturePack& pack, QByteArray&& raw_data) |
| 124 | { |
| 125 | auto img = QImage::fromData(raw_data); |
| 126 | if (!img.isNull()) { |
| 127 | pack.setImage(img); |
| 128 | } else { |
| 129 | qWarning() << "Failed to parse pack.png."; |
| 130 | } |
| 131 | } |
| 132 | } // namespace TexturePackUtils |
| 133 | |
| 134 | LocalTexturePackParseTask::LocalTexturePackParseTask(int token, TexturePack& rp) |
no test coverage detected