Warn about known conflicting modloaders

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-06-27 19:25:38 -07:00
parent 4ed92a95c2
commit c4cc1cfe4f
4 changed files with 137 additions and 102 deletions

View File

@ -225,6 +225,22 @@ bool Component::isVersionChangeable()
return false;
}
bool Component::isKnownModloader()
{
auto iter = KNOWN_MODLOADERS.find(m_uid);
return iter != KNOWN_MODLOADERS.cend();
}
QStringList Component::knownConfictingComponents()
{
auto iter = KNOWN_MODLOADERS.find(m_uid);
if (iter != KNOWN_MODLOADERS.cend()) {
return (*iter).knownConfictingComponents;
} else {
return {};
}
}
void Component::setImportant(bool state)
{
if (m_important != state) {