add modrinth modpack filter
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
dfe3cd849d
commit
859fac604b
13 changed files with 170 additions and 88 deletions
|
@ -123,8 +123,19 @@ QDebug operator<<(QDebug debug, const Version& v)
|
|||
first = false;
|
||||
}
|
||||
|
||||
debug.nospace() << " ]"
|
||||
<< " }";
|
||||
debug.nospace() << " ]" << " }";
|
||||
|
||||
return debug;
|
||||
}
|
||||
|
||||
bool checkMcVersions(std::list<Version> filter, QStringList value)
|
||||
{
|
||||
bool valid = false;
|
||||
for (auto mcVersion : filter) {
|
||||
if (value.contains(mcVersion.toString())) {
|
||||
valid = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return filter.empty() || valid;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue