From 50f16cd7a0b71048660ada0c051faeefd16e4920 Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Tue, 3 Mar 2026 15:58:45 +0100 Subject: [PATCH] renamed source to path in mod config --- src/basic_types.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/basic_types.rs b/src/basic_types.rs index eb4ab73..e7d1e04 100644 --- a/src/basic_types.rs +++ b/src/basic_types.rs @@ -44,7 +44,7 @@ impl RootConfig { #[inline] pub fn get_mod_location(&self, mod_config: &ModConfig) -> PathBuf { - self.mod_location.join(mod_config.source.clone()) + self.mod_location.join(mod_config.path.clone()) } pub fn get_mod_by_id(&self, id: &str) -> Option { @@ -83,14 +83,14 @@ pub struct ModConfig { pub id: String, /// Relative to the mod_location from root config - pub source: PathBuf, + pub path: PathBuf, } impl ModConfig { pub fn new(id: &str, source: impl AsRef) -> Self { Self { id: id.to_owned(), - source: source.as_ref().to_owned(), + path: source.as_ref().to_owned(), } } }