Added back api loader filtering if just one is selected
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
abfd1a4205
commit
288d0d1fd4
3 changed files with 19 additions and 7 deletions
|
@ -152,6 +152,12 @@ QString getMetaURL(ResourceProvider provider, QVariant projectID);
|
|||
|
||||
auto getModLoaderString(ModLoaderType type) -> const QString;
|
||||
|
||||
constexpr bool hasSingleModLoaderSelected(ModLoaderTypes l) noexcept
|
||||
{
|
||||
auto x = static_cast<int>(l);
|
||||
return x && !(x & (x - 1));
|
||||
}
|
||||
|
||||
} // namespace ModPlatform
|
||||
|
||||
Q_DECLARE_METATYPE(ModPlatform::IndexedPack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue