MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / createNewHash

Method createNewHash

launcher/modplatform/EnsureMetadataTask.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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