aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/helpers/HashUtils.h
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-10-25 01:19:19 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2022-11-01 04:24:11 -0700
commit1598d6582473f1bb6aa02fd9b4dabc8210771e56 (patch)
tree42dcb5df3a1629af1c1a7a0205545a835234e7d8 /launcher/modplatform/helpers/HashUtils.h
parent028e086960402f685e07163def36d6b5eee1b796 (diff)
downloadPrismLauncher-1598d6582473f1bb6aa02fd9b4dabc8210771e56.tar.gz
PrismLauncher-1598d6582473f1bb6aa02fd9b4dabc8210771e56.tar.bz2
PrismLauncher-1598d6582473f1bb6aa02fd9b4dabc8210771e56.zip
watch filesystem, compute and match hashes
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform/helpers/HashUtils.h')
-rw-r--r--launcher/modplatform/helpers/HashUtils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/launcher/modplatform/helpers/HashUtils.h b/launcher/modplatform/helpers/HashUtils.h
index 38fddf03..fa3244f6 100644
--- a/launcher/modplatform/helpers/HashUtils.h
+++ b/launcher/modplatform/helpers/HashUtils.h
@@ -40,8 +40,23 @@ class ModrinthHasher : public Hasher {
void executeTask() override;
};
+class BlockedModHasher : public Hasher {
+ public:
+ BlockedModHasher(QString file_path, ModPlatform::Provider provider);
+
+ void executeTask() override;
+
+ QStringList getHashTypes();
+ bool useHashType(QString type);
+ private:
+ ModPlatform::Provider provider;
+ QString hash_type;
+};
+
Hasher::Ptr createHasher(QString file_path, ModPlatform::Provider provider);
Hasher::Ptr createFlameHasher(QString file_path);
Hasher::Ptr createModrinthHasher(QString file_path);
+Hasher::Ptr createBlockedModHasher(QString file_path, ModPlatform::Provider provider);
+Hasher::Ptr createBlockedModHasher(QString file_path, ModPlatform::Provider provider, QString type);
} // namespace Hashing