Merge branch 'curse' of github.com:Trial97/PrismLauncher into curse
This commit is contained in:
commit
52dd09bdf7
@ -166,13 +166,6 @@ auto Mod::homeurl() const -> QString
|
|||||||
return details().homeurl;
|
return details().homeurl;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto Mod::metaurl() const -> QString
|
|
||||||
{
|
|
||||||
if (metadata() == nullptr)
|
|
||||||
return homeurl();
|
|
||||||
return ModPlatform::getMetaURL(metadata()->provider, metadata()->project_id);
|
|
||||||
}
|
|
||||||
|
|
||||||
auto Mod::description() const -> QString
|
auto Mod::description() const -> QString
|
||||||
{
|
{
|
||||||
return details().description;
|
return details().description;
|
||||||
|
@ -70,7 +70,6 @@ public:
|
|||||||
auto provider() const -> std::optional<QString>;
|
auto provider() const -> std::optional<QString>;
|
||||||
auto licenses() const -> const QList<ModLicense>&;
|
auto licenses() const -> const QList<ModLicense>&;
|
||||||
auto issueTracker() const -> QString;
|
auto issueTracker() const -> QString;
|
||||||
auto metaurl() const -> QString;
|
|
||||||
|
|
||||||
/** Get the intneral path to the mod's icon file*/
|
/** Get the intneral path to the mod's icon file*/
|
||||||
QString iconPath() const { return m_local_details.icon_file; };
|
QString iconPath() const { return m_local_details.icon_file; };
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#include "tasks/Task.h"
|
#include "tasks/Task.h"
|
||||||
|
|
||||||
const QString FlamePackExportTask::TEMPLATE = "<li><a href={url}>{name}{authors}</a></li>\n";
|
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" });
|
const QStringList FlamePackExportTask::FILE_EXTENSIONS({ "jar", "zip" });
|
||||||
|
|
||||||
FlamePackExportTask::FlamePackExportTask(const QString& name,
|
FlamePackExportTask::FlamePackExportTask(const QString& name,
|
||||||
@ -115,8 +114,6 @@ void FlamePackExportTask::collectHashes()
|
|||||||
for (const QFileInfo& file : files) {
|
for (const QFileInfo& file : files) {
|
||||||
const QString relative = gameRoot.relativeFilePath(file.absoluteFilePath());
|
const QString relative = gameRoot.relativeFilePath(file.absoluteFilePath());
|
||||||
// require sensible file types
|
// 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) {
|
if (!std::any_of(FILE_EXTENSIONS.begin(), FILE_EXTENSIONS.end(), [&relative](const QString& extension) {
|
||||||
return relative.endsWith('.' + extension) || relative.endsWith('.' + extension + ".disabled");
|
return relative.endsWith('.' + extension) || relative.endsWith('.' + extension + ".disabled");
|
||||||
}))
|
}))
|
||||||
|
@ -42,7 +42,6 @@ class FlamePackExportTask : public Task {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static const QString TEMPLATE;
|
static const QString TEMPLATE;
|
||||||
static const QStringList PREFIXES;
|
|
||||||
static const QStringList FILE_EXTENSIONS;
|
static const QStringList FILE_EXTENSIONS;
|
||||||
|
|
||||||
// inputs
|
// inputs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user