Fixed sorting skipping repeated plugin loading.

While it does lead to almost instantaneous sorting, the plugins may have
changed since they were last loaded, and there's no way to tell
currently, so load them all to be safe.
This commit is contained in:
WrinklyNinja
2014-08-26 23:43:32 +01:00
parent ac6c28364b
commit 65fa6b34cc
+2 -3
View File
@@ -851,9 +851,8 @@ namespace loot {
language = Language::any;
BOOST_LOG_TRIVIAL(info) << "Using message language: " << Language(language).Name();
// Check if the plugins have been fully loaded, and if not load all plugins.
if (!g_app_state.CurrentGame().HasBeenLoaded())
g_app_state.CurrentGame().LoadPlugins(false);
// Always reload all the plugins.
g_app_state.CurrentGame().LoadPlugins(false);
//Sort plugins into their load order.
list<Plugin> plugins = g_app_state.CurrentGame().Sort(language, [](const string& message){});