added log lines
This commit is contained in:
@@ -4,6 +4,7 @@ use std::{
|
||||
};
|
||||
|
||||
use libloot::{Game, GameType};
|
||||
use log::trace;
|
||||
|
||||
use crate::{
|
||||
basic_types::{ModdedInstance, RootConfig},
|
||||
@@ -44,6 +45,7 @@ impl LoadOrder {
|
||||
.collect();
|
||||
|
||||
let refs: Vec<_> = mod_plugins.iter().map(|e| e.as_path()).collect();
|
||||
trace!("Loading {} plugins to game", refs.len());
|
||||
self.game.load_plugins(&refs)?;
|
||||
}
|
||||
Ok(())
|
||||
@@ -55,6 +57,7 @@ impl LoadOrder {
|
||||
.map(|f| f.path())
|
||||
.collect();
|
||||
let refs: Vec<_> = plugins.iter().map(|e| e.as_path()).collect();
|
||||
trace!("Loading {} plugins to game", refs.len());
|
||||
self.game.load_plugins(&refs)?;
|
||||
Ok(())
|
||||
}
|
||||
@@ -67,6 +70,7 @@ impl LoadOrder {
|
||||
}
|
||||
|
||||
pub fn load_order(&self) -> Result<Vec<String>, Box<dyn Error>> {
|
||||
trace!("Generating new load order");
|
||||
let all_plugins = self.game.loaded_plugins();
|
||||
let plugins_names: Vec<&str> = all_plugins.iter().map(|e| e.name()).collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user