Cut down on unhelpful warnings.

Files without a .esm or .esp extension aren't expected to be plugins, so
warning about them just fills the log file unnecessarily.
This commit is contained in:
Oliver Hamlet
2015-02-13 18:49:34 +00:00
parent 57e85d6921
commit f286cb974d
-1
View File
@@ -740,7 +740,6 @@ namespace loot {
BOOST_LOG_TRIVIAL(trace) << "Checking to see if \"" << name << "\" is a valid plugin.";
// Rather than just checking the extension, try also parsing the file header, and see if it fails.
if (!boost::iends_with(name, ".esm") && !boost::iends_with(name, ".esp") && !boost::iends_with(name, ".esm.ghost") && !boost::iends_with(name, ".esp.ghost")) {
BOOST_LOG_TRIVIAL(warning) << "The .es(p|m) file \"" << name << "\" is not a valid plugin.";
return false;
}