diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-06-24 14:04:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-24 14:04:27 +0100 |
commit | bcf45c74a1b0b3389c05927637bf8aa95b8e43cf (patch) | |
tree | ba0519e490c627d5d491cc4ff980921a84d29c41 /launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp | |
parent | df6d46de9e648284a788a327b87698d58a4fc145 (diff) | |
parent | 8b576fd2bd442a61092de870b4323c280b04d2d6 (diff) | |
download | PrismLauncher-bcf45c74a1b0b3389c05927637bf8aa95b8e43cf.tar.gz PrismLauncher-bcf45c74a1b0b3389c05927637bf8aa95b8e43cf.tar.bz2 PrismLauncher-bcf45c74a1b0b3389c05927637bf8aa95b8e43cf.zip |
Merge pull request #986 from Trial97/develop
Mod dependencies
Diffstat (limited to 'launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp')
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp b/launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp index 667a52d0..0fb67c50 100644 --- a/launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp +++ b/launcher/ui/pages/modplatform/flame/FlameResourceModels.cpp @@ -29,6 +29,11 @@ void FlameModModel::loadIndexedPackVersions(ModPlatform::IndexedPack& m, QJsonAr FlameMod::loadIndexedPackVersions(m, arr, APPLICATION->network(), &m_base_instance); } +auto FlameModModel::loadDependencyVersions(const ModPlatform::Dependency& m, QJsonArray& arr) -> ModPlatform::IndexedVersion +{ + return FlameMod::loadDependencyVersions(m, arr); +}; + auto FlameModModel::documentToArray(QJsonDocument& obj) const -> QJsonArray { return Json::ensureArray(obj.object(), "data"); @@ -81,7 +86,7 @@ void FlameTexturePackModel::loadIndexedPackVersions(ModPlatform::IndexedPack& m, auto const& mc_versions = version.mcVersion; if (std::any_of(mc_versions.constBegin(), mc_versions.constEnd(), - [this](auto const& mc_version){ return Version(mc_version) <= maximumTexturePackVersion(); })) + [this](auto const& mc_version) { return Version(mc_version) <= maximumTexturePackVersion(); })) filtered_versions.push_back(version); } |