added log lines

This commit is contained in:
2026-03-02 23:00:24 +01:00
parent 6bb41e7d72
commit 53e4614970
5 changed files with 60 additions and 10 deletions

View File

@@ -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();