mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-19 15:57:18 +02:00
Edit Modrinth search faucets
Edit Modrinth search faucets to alter the client and server filters to be more in-line with the Modrinth website and Launcher, making it easier to find client-side only mods etc. Signed-off-by: Jeffery Tolmie Jeffery.tolmie@gmail.com
This commit is contained in:
parent
f8a504e254
commit
2a403b3bfe
@ -71,13 +71,15 @@ class ModrinthAPI : public NetworkResourceAPI {
|
|||||||
|
|
||||||
static auto getSideFilters(QString side) -> const QString
|
static auto getSideFilters(QString side) -> const QString
|
||||||
{
|
{
|
||||||
if (side.isEmpty() || side == "both") {
|
if (side.isEmpty()) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
if (side == "both")
|
||||||
|
return QString("\"client_side:required\"],[\"server_side:required\"");
|
||||||
if (side == "client")
|
if (side == "client")
|
||||||
return QString("\"client_side:required\",\"client_side:optional\"");
|
return QString("\"client_side:required\",\"client_side:optional\"],[\"server_side:optional\",\"server_side:unsupported\"");
|
||||||
if (side == "server")
|
if (side == "server")
|
||||||
return QString("\"server_side:required\",\"server_side:optional\"");
|
return QString("\"server_side:required\",\"server_side:optional\"],[\"client_side:optional\",\"client_side:unsupported\"");
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user