diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-04-19 20:36:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-19 20:36:37 +0200 |
commit | 027c666265a2fe70423b56faf7680a689454d3c2 (patch) | |
tree | 7f15b1f460771935880936f4f63df541c55fde93 /launcher/ui/pages/modplatform/flame | |
parent | 31c757d91228840d74d21506157d04d487261748 (diff) | |
parent | fcdc7a1a358ba9d8dcf0492310dd3528dc05a911 (diff) | |
download | PrismLauncher-027c666265a2fe70423b56faf7680a689454d3c2.tar.gz PrismLauncher-027c666265a2fe70423b56faf7680a689454d3c2.tar.bz2 PrismLauncher-027c666265a2fe70423b56faf7680a689454d3c2.zip |
Merge pull request #450 from Scrumplex/fix-quilt-mod-dl
Diffstat (limited to 'launcher/ui/pages/modplatform/flame')
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameModPage.cpp | 4 | ||||
-rw-r--r-- | launcher/ui/pages/modplatform/flame/FlameModPage.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp index 203adb3b..70759994 100644 --- a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp +++ b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp @@ -61,9 +61,9 @@ FlameModPage::FlameModPage(ModDownloadDialog* dialog, BaseInstance* instance) connect(ui->modSelectionButton, &QPushButton::clicked, this, &FlameModPage::onModSelected); } -auto FlameModPage::validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer) const -> bool +auto FlameModPage::validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderType loader) const -> bool { - (void) loaderVer; + Q_UNUSED(loader); return ver.mcVersion.contains(mineVer); } diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.h b/launcher/ui/pages/modplatform/flame/FlameModPage.h index d96a0720..27cbdb8c 100644 --- a/launcher/ui/pages/modplatform/flame/FlameModPage.h +++ b/launcher/ui/pages/modplatform/flame/FlameModPage.h @@ -35,6 +35,7 @@ #pragma once +#include "modplatform/ModAPI.h" #include "ui/pages/modplatform/ModPage.h" #include "modplatform/flame/FlameAPI.h" @@ -54,7 +55,7 @@ class FlameModPage : public ModPage { inline auto debugName() const -> QString override { return "Flame"; } inline auto metaEntryBase() const -> QString override { return "FlameMods"; }; - auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, QString loaderVer = "") const -> bool override; + auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderType loader = ModAPI::Unspecified) const -> bool override; auto shouldDisplay() const -> bool override; }; |