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

Method createNewHash

launcher/modplatform/EnsureMetadataTask.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48Hashing::Hasher::Ptr EnsureMetadataTask::createNewHash(Mod* mod)
49{
50 if (!mod || !mod->valid() || mod->type() == ResourceType::FOLDER)
51 return nullptr;
52
53 return Hashing::createHasher(mod->fileinfo().absoluteFilePath(), m_provider);
54}
55
56QString EnsureMetadataTask::getExistingHash(Mod* mod)
57{

Callers

nothing calls this directly

Calls 4

createHasherFunction · 0.85
fileinfoMethod · 0.80
validMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected