diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2023-06-25 14:39:45 +0100 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2023-06-25 14:40:22 +0100 |
commit | 8ade44c9a3b186fb5ab19d9802a4d7b4187b7258 (patch) | |
tree | e1f6eade5a933cbf329f0cba2b838c23e1af9805 /launcher/modplatform | |
parent | fa3a46498f7fe4a7d6e26558c03b0485126b377c (diff) | |
download | PrismLauncher-8ade44c9a3b186fb5ab19d9802a4d7b4187b7258.tar.gz PrismLauncher-8ade44c9a3b186fb5ab19d9802a4d7b4187b7258.tar.bz2 PrismLauncher-8ade44c9a3b186fb5ab19d9802a4d7b4187b7258.zip |
Simplify
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/modplatform')
-rw-r--r-- | launcher/modplatform/flame/FlamePackExportTask.cpp | 3 | ||||
-rw-r--r-- | launcher/modplatform/flame/FlamePackExportTask.h | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/launcher/modplatform/flame/FlamePackExportTask.cpp b/launcher/modplatform/flame/FlamePackExportTask.cpp index cbb57afa..1460a4c3 100644 --- a/launcher/modplatform/flame/FlamePackExportTask.cpp +++ b/launcher/modplatform/flame/FlamePackExportTask.cpp @@ -37,7 +37,6 @@ #include "tasks/Task.h" const QString FlamePackExportTask::TEMPLATE = "<li><a href={url}>{name}{authors}</a></li>\n"; -const QStringList FlamePackExportTask::PREFIXES({ "mods/", "resourcepacks/" }); const QStringList FlamePackExportTask::FILE_EXTENSIONS({ "jar", "zip" }); FlamePackExportTask::FlamePackExportTask(const QString& name, @@ -116,8 +115,6 @@ void FlamePackExportTask::collectHashes() for (const QFileInfo& file : files) { const QString relative = gameRoot.relativeFilePath(file.absoluteFilePath()); // require sensible file types - if (!std::any_of(PREFIXES.begin(), PREFIXES.end(), [&relative](const QString& prefix) { return relative.startsWith(prefix); })) - continue; if (!std::any_of(FILE_EXTENSIONS.begin(), FILE_EXTENSIONS.end(), [&relative](const QString& extension) { return relative.endsWith('.' + extension) || relative.endsWith('.' + extension + ".disabled"); })) diff --git a/launcher/modplatform/flame/FlamePackExportTask.h b/launcher/modplatform/flame/FlamePackExportTask.h index b6a6c352..3dee0a7e 100644 --- a/launcher/modplatform/flame/FlamePackExportTask.h +++ b/launcher/modplatform/flame/FlamePackExportTask.h @@ -42,7 +42,6 @@ class FlamePackExportTask : public Task { private: static const QString TEMPLATE; - static const QStringList PREFIXES; static const QStringList FILE_EXTENSIONS; // inputs |