aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/modrinth/ModrinthPackIndex.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-06-03 19:04:49 -0300
committerflow <flowlnlnln@gmail.com>2022-07-17 11:33:41 -0300
commit0e52112016fe9942f7448cd83914f6266904c311 (patch)
treefb873a3a6920d1ae4f5751f747864dd6283e0556 /launcher/modplatform/modrinth/ModrinthPackIndex.h
parent32a9545360b10058cf84b951ee88959adf3bf374 (diff)
downloadPrismLauncher-0e52112016fe9942f7448cd83914f6266904c311.tar.gz
PrismLauncher-0e52112016fe9942f7448cd83914f6266904c311.tar.bz2
PrismLauncher-0e52112016fe9942f7448cd83914f6266904c311.zip
feat: add some api calls to modrinth
Calls added: - Get version from hash - Get versions from hashes - Latest version of a project from a hash, loader(s), and game version(s) - Latest versions of multiple project from hashes, loader(s), and game version(s) Some of those are not used yet, but may be of use later on, so we have it if we need it :) Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/modplatform/modrinth/ModrinthPackIndex.h')
-rw-r--r--launcher/modplatform/modrinth/ModrinthPackIndex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/modplatform/modrinth/ModrinthPackIndex.h b/launcher/modplatform/modrinth/ModrinthPackIndex.h
index b7936204..31881414 100644
--- a/launcher/modplatform/modrinth/ModrinthPackIndex.h
+++ b/launcher/modplatform/modrinth/ModrinthPackIndex.h
@@ -30,6 +30,6 @@ void loadIndexedPackVersions(ModPlatform::IndexedPack& pack,
QJsonArray& arr,
const shared_qobject_ptr<QNetworkAccessManager>& network,
BaseInstance* inst);
-auto loadIndexedPackVersion(QJsonObject& obj) -> ModPlatform::IndexedVersion;
+auto loadIndexedPackVersion(QJsonObject& obj, QString hash_type = "sha512", QString filename_prefer = "") -> ModPlatform::IndexedVersion;
} // namespace Modrinth