diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-22 13:17:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-22 13:17:53 +0200 |
commit | 29ef1e2c4b46c762e79a2bbe9f4a5a0033bc92ca (patch) | |
tree | 68bb97277b95d5f23626577825ab803252558244 /launcher/ui/pages/modplatform/flame | |
parent | fbe84f9e4799596a41802489085f6d9067cdd745 (diff) | |
parent | 36045a8b0aa5c99e8520a39e6cc372ab9b549668 (diff) | |
download | PrismLauncher-29ef1e2c4b46c762e79a2bbe9f4a5a0033bc92ca.tar.gz PrismLauncher-29ef1e2c4b46c762e79a2bbe9f4a5a0033bc92ca.tar.bz2 PrismLauncher-29ef1e2c4b46c762e79a2bbe9f4a5a0033bc92ca.zip |
Merge pull request #597 from Scrumplex/refactor-modloader-modapi
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 | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.cpp b/launcher/ui/pages/modplatform/flame/FlameModPage.cpp index 70759994..1c160fd4 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, ModAPI::ModLoaderType loader) const -> bool +auto FlameModPage::validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderTypes loaders) const -> bool { - Q_UNUSED(loader); + Q_UNUSED(loaders); return ver.mcVersion.contains(mineVer); } diff --git a/launcher/ui/pages/modplatform/flame/FlameModPage.h b/launcher/ui/pages/modplatform/flame/FlameModPage.h index 27cbdb8c..86e1a17b 100644 --- a/launcher/ui/pages/modplatform/flame/FlameModPage.h +++ b/launcher/ui/pages/modplatform/flame/FlameModPage.h @@ -55,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, ModAPI::ModLoaderType loader = ModAPI::Unspecified) const -> bool override; + auto validateVersion(ModPlatform::IndexedVersion& ver, QString mineVer, ModAPI::ModLoaderTypes loaders = ModAPI::Unspecified) const -> bool override; auto shouldDisplay() const -> bool override; }; |