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

Function processPackPNG

launcher/minecraft/mod/tasks/LocalTexturePackParseTask.cpp:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void 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
134LocalTexturePackParseTask::LocalTexturePackParseTask(int token, TexturePack& rp)

Callers 2

processFolderFunction · 0.70
processZIPFunction · 0.70

Calls 1

setImageMethod · 0.45

Tested by

no test coverage detected