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

Function process

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

Source from the content-addressed store, hash-verified

29namespace ResourcePackUtils {
30
31bool process(ResourcePack& pack)
32{
33 switch (pack.type()) {
34 case ResourceType::FOLDER:
35 ResourcePackUtils::processFolder(pack);
36 return true;
37 case ResourceType::ZIPFILE:
38 ResourcePackUtils::processZIP(pack);
39 return true;
40 default:
41 qWarning() << "Invalid type for resource pack parse task!";
42 return false;
43 }
44}
45
46void processFolder(ResourcePack& pack)
47{

Callers 1

executeTaskMethod · 0.70

Calls 3

processFolderFunction · 0.70
processZIPFunction · 0.70
typeMethod · 0.45

Tested by

no test coverage detected