pollymc/launcher/modplatform/ModIndex.cpp
flow a99858c64d
refactor: move code out of ModIndex.h
Now it's in ModIndex.cpp
2022-05-23 14:43:07 -03:00

25 lines
472 B
C++

#include "modplatform/ModIndex.h"
namespace ModPlatform{
auto ProviderCapabilities::name(Provider p) -> const char*
{
switch(p){
case Provider::MODRINTH:
return "modrinth";
case Provider::FLAME:
return "curseforge";
}
}
auto ProviderCapabilities::hashType(Provider p) -> QString
{
switch(p){
case Provider::MODRINTH:
return "sha512";
case Provider::FLAME:
return "murmur2";
}
}
} // namespace ModPlatform