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

Function processPackPNG

launcher/minecraft/mod/tasks/LocalResourcePackParseTask.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132void processPackPNG(ResourcePack& pack, QByteArray&& raw_data)
133{
134 auto img = QImage::fromData(raw_data);
135 if (!img.isNull()) {
136 pack.setImage(img);
137 } else {
138 qWarning() << "Failed to parse pack.png.";
139 }
140}
141} // namespace ResourcePackUtils
142
143LocalResourcePackParseTask::LocalResourcePackParseTask(int token, ResourcePack& rp)

Callers 2

processFolderFunction · 0.70
processZIPFunction · 0.70

Calls 1

setImageMethod · 0.45

Tested by

no test coverage detected