Fixed BOSS displaying invalid install errors when plugins are ghosted.

This commit is contained in:
WrinklyNinja
2013-09-27 16:12:37 +01:00
parent f675efda57
commit 5cbcc8a273
+3 -3
View File
@@ -639,16 +639,16 @@ namespace boss {
map<string,bool> issues;
if (tags.find(Tag("Filter")) == tags.end()) {
for (vector<string>::const_iterator it=masters.begin(), endIt=masters.end(); it != endIt; ++it) {
if (!boost::filesystem::exists(game.DataPath() / *it))
if (!boost::filesystem::exists(game.DataPath() / *it) && !boost::filesystem::exists(game.DataPath() / (*it + ".ghost")))
issues.insert(pair<string,bool>(*it,false));
}
}
for (set<File>::const_iterator it=requirements.begin(), endIt=requirements.end(); it != endIt; ++it) {
if (!boost::filesystem::exists(game.DataPath() / it->Name()))
if (!boost::filesystem::exists(game.DataPath() / it->Name()) && !(IsPlugin(it->Name()) && boost::filesystem::exists(game.DataPath() / (it->Name() + ".ghost"))))
issues.insert(pair<string,bool>(it->DisplayName(),false));
}
for (set<File>::const_iterator it=incompatibilities.begin(), endIt=incompatibilities.end(); it != endIt; ++it) {
if (boost::filesystem::exists(game.DataPath() / it->Name()))
if (!boost::filesystem::exists(game.DataPath() / it->Name()) && !(IsPlugin(it->Name()) && boost::filesystem::exists(game.DataPath() / (it->Name() + ".ghost"))))
issues.insert(pair<string,bool>(it->DisplayName(),true));
}
return issues;