From f286cb974d72334366af7bdd92e5f24b0a89178b Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 13 Feb 2015 18:49:34 +0000 Subject: [PATCH] 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. --- src/backend/game.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/game.cpp b/src/backend/game.cpp index 9da86e53..f3db9b83 100644 --- a/src/backend/game.cpp +++ b/src/backend/game.cpp @@ -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; }