mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
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:
+2
-3
@@ -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){});
|
||||
|
||||
Reference in New Issue
Block a user