diff options
| author | TheKodeToad <freezingma1l@outlook.com> | 2023-03-02 10:10:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-02 10:10:46 +0000 |
| commit | 5c913149c84c121523a1ae403848d3e0926de244 (patch) | |
| tree | 3789176d454bd988b7e572e5f411151efc2cb7e2 /launcher/modplatform | |
| parent | cbe6eff2fa917401b913a96c551429caad852b3b (diff) | |
| parent | 9265c319a96b3dd5681767c196a397fbbae9164a (diff) | |
| download | PrismLauncher-5c913149c84c121523a1ae403848d3e0926de244.tar.gz PrismLauncher-5c913149c84c121523a1ae403848d3e0926de244.tar.bz2 PrismLauncher-5c913149c84c121523a1ae403848d3e0926de244.zip | |
Merge branch 'PrismLauncher:develop' into modrinth-token
Diffstat (limited to 'launcher/modplatform')
| -rw-r--r-- | launcher/modplatform/ModIndex.h | 2 | ||||
| -rw-r--r-- | launcher/modplatform/flame/FlameAPI.h | 2 | ||||
| -rw-r--r-- | launcher/modplatform/modrinth/ModrinthAPI.h | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/launcher/modplatform/ModIndex.h b/launcher/modplatform/ModIndex.h index b1f8050d..40f1efc4 100644 --- a/launcher/modplatform/ModIndex.h +++ b/launcher/modplatform/ModIndex.h @@ -30,7 +30,7 @@ namespace ModPlatform { enum class ResourceProvider { MODRINTH, FLAME }; -enum class ResourceType { MOD, RESOURCE_PACK }; +enum class ResourceType { MOD, RESOURCE_PACK, SHADER_PACK }; class ProviderCapabilities { public: diff --git a/launcher/modplatform/flame/FlameAPI.h b/launcher/modplatform/flame/FlameAPI.h index 06d749e6..5811d717 100644 --- a/launcher/modplatform/flame/FlameAPI.h +++ b/launcher/modplatform/flame/FlameAPI.h @@ -27,6 +27,8 @@ class FlameAPI : public NetworkResourceAPI { default: case ModPlatform::ResourceType::MOD: return 6; + case ModPlatform::ResourceType::RESOURCE_PACK: + return 12; } } diff --git a/launcher/modplatform/modrinth/ModrinthAPI.h b/launcher/modplatform/modrinth/ModrinthAPI.h index dda27303..b91ac5c1 100644 --- a/launcher/modplatform/modrinth/ModrinthAPI.h +++ b/launcher/modplatform/modrinth/ModrinthAPI.h @@ -68,6 +68,10 @@ class ModrinthAPI : public NetworkResourceAPI { switch (type) { case ModPlatform::ResourceType::MOD: return "mod"; + case ModPlatform::ResourceType::RESOURCE_PACK: + return "resourcepack"; + case ModPlatform::ResourceType::SHADER_PACK: + return "shader"; default: qWarning() << "Invalid resource type for Modrinth API!"; break; |
