mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor: move code out of ModIndex.h
Now it's in ModIndex.cpp
This commit is contained in:
parent
ba50765c30
commit
a99858c64d
6 changed files with 37 additions and 25 deletions
24
launcher/modplatform/ModIndex.cpp
Normal file
24
launcher/modplatform/ModIndex.cpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue