feat(RD): add resource pack downloader

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-12-16 20:26:10 -03:00
parent e89a10945c
commit c3ea303a37
20 changed files with 538 additions and 23 deletions

View File

@ -27,6 +27,8 @@ class FlameAPI : public NetworkResourceAPI {
default:
case ModPlatform::ResourceType::MOD:
return 6;
case ModPlatform::ResourceType::RESOURCE_PACK:
return 12;
}
}

View File

@ -68,6 +68,8 @@ class ModrinthAPI : public NetworkResourceAPI {
switch (type) {
case ModPlatform::ResourceType::MOD:
return "mod";
case ModPlatform::ResourceType::RESOURCE_PACK:
return "resourcepack";
default:
qWarning() << "Invalid resource type for Modrinth API!";
break;