diff options
author | flow <flowlnlnln@gmail.com> | 2022-08-02 15:14:25 -0300 |
---|---|---|
committer | flow <flowlnlnln@gmail.com> | 2022-10-08 14:11:20 -0300 |
commit | d99976f5d7e13f0e2432028b9dd8b38ded8bcc18 (patch) | |
tree | 015c0ff14eef1c18109c7065c0b3526ffa5d4b9d /launcher/ui | |
parent | db158a5735e18442f76118f1f6a060e6c3680e33 (diff) | |
download | PrismLauncher-d99976f5d7e13f0e2432028b9dd8b38ded8bcc18.tar.gz PrismLauncher-d99976f5d7e13f0e2432028b9dd8b38ded8bcc18.tar.bz2 PrismLauncher-d99976f5d7e13f0e2432028b9dd8b38ded8bcc18.zip |
fix: make mod and modpack caches separate for Modrinth
This makes it similar to CF mods / modpacks. The mods cache is
maintained with the same name because it most likely has more data it
in, so this commit will affect existing caches as minimally as possible.
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui')
-rw-r--r-- | launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp index fd7a3537..a0e9ab19 100644 --- a/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp +++ b/launcher/ui/pages/modplatform/modrinth/ModrinthModel.cpp @@ -218,7 +218,7 @@ void ModpackListModel::getLogo(const QString& logo, const QString& logoUrl, Logo { if (m_logoMap.contains(logo)) { callback(APPLICATION->metacache() - ->resolveEntry("ModrinthPacks", QString("logos/%1").arg(logo.section(".", 0, 0))) + ->resolveEntry(m_parent->metaEntryBase(), QString("logos/%1").arg(logo.section(".", 0, 0))) ->getFullPath()); } else { requestLogo(logo, logoUrl); @@ -232,7 +232,7 @@ void ModpackListModel::requestLogo(QString logo, QString url) } MetaEntryPtr entry = - APPLICATION->metacache()->resolveEntry("ModrinthPacks", QString("logos/%1").arg(logo.section(".", 0, 0))); + APPLICATION->metacache()->resolveEntry(m_parent->metaEntryBase(), QString("logos/%1").arg(logo.section(".", 0, 0))); auto job = new NetJob(QString("%1 Icon Download %2").arg(m_parent->debugName()).arg(logo), APPLICATION->network()); job->addNetAction(Net::Download::makeCached(QUrl(url), entry)); |