From 1473618d8a1fc332460ea6b20483499774943544 Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Sun, 17 Aug 2014 20:38:39 +0100 Subject: [PATCH] Inactive incompatibilities cause warnings. Closes #205. --- src/backend/metadata.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/backend/metadata.cpp b/src/backend/metadata.cpp index 605b0b77..e2e46333 100644 --- a/src/backend/metadata.cpp +++ b/src/backend/metadata.cpp @@ -751,6 +751,8 @@ namespace loot { } for (const auto &inc: incompatibilities) { if (boost::filesystem::exists(game.DataPath() / inc.Name()) || (IsPlugin(inc.Name()) && boost::filesystem::exists(game.DataPath() / (inc.Name() + ".ghost")))) { + if (!game.IsActive(inc.Name())) + messageType = loot::Message::warn; BOOST_LOG_TRIVIAL(error) << "\"" << name << "\" is incompatible with \"" << inc.Name() << "\", but both are present."; messages.push_back(loot::Message(messageType, (boost::format(boost::locale::translate("This plugin is incompatible with \"%1%\", but both are present.")) % inc.Name()).str())); }