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

Function createHasher

launcher/modplatform/helpers/HashUtils.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12static ModPlatform::ProviderCapabilities ProviderCaps;
13
14Hasher::Ptr createHasher(QString file_path, ModPlatform::Provider provider)
15{
16 switch (provider) {
17 case ModPlatform::Provider::MODRINTH:
18 return createModrinthHasher(file_path);
19 case ModPlatform::Provider::FLAME:
20 return createFlameHasher(file_path);
21 default:
22 qCritical() << "[Hashing]"
23 << "Unrecognized mod platform!";
24 return nullptr;
25 }
26}
27
28Hasher::Ptr createModrinthHasher(QString file_path)
29{

Callers 1

createNewHashMethod · 0.85

Calls 2

createModrinthHasherFunction · 0.85
createFlameHasherFunction · 0.85

Tested by

no test coverage detected