added mod_id to InstalledMod

This commit is contained in:
2026-03-01 22:20:26 +01:00
parent bc2ed1d2e3
commit 2bf59a17f8

View File

@@ -152,6 +152,11 @@ impl InstalledMod {
self.files.push((file.source.clone(), file.dest.clone()));
}
/// Get the id of the mod
pub fn mod_id(&self) -> String {
self.id.clone()
}
/// The priority over other mods. Only used when 2 files conflict.
pub fn priority(&self) -> isize {
self.priority