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

Method hashType

launcher/modplatform/ModIndex.cpp:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 return {};
46}
47auto ProviderCapabilities::hashType(Provider p) -> QStringList
48{
49 switch (p) {
50 case Provider::MODRINTH:
51 return { "sha512", "sha1" };
52 case Provider::FLAME:
53 // Try newer formats first, fall back to old format
54 return { "sha1", "md5", "murmur2" };
55 }
56 return {};
57}
58
59auto ProviderCapabilities::hash(Provider p, QIODevice* device, QString type) -> QString
60{

Callers 5

modrinthVersionsTaskMethod · 0.80
executeTaskMethod · 0.80
executeTaskMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected