fixed dest on ModFile

This commit is contained in:
2026-02-28 18:46:17 +01:00
parent b94dbc5c53
commit abd2d661d5

View File

@@ -43,7 +43,7 @@ impl ModFile {
let source_root = from_mod.source.join(&dir_type.source);
let priority = dir_type.priority.unwrap_or(0);
let dest_base: PathBuf =
Path::new("data").join(PathBuf::from(dir_type.destination.unwrap_or_default()));
Path::new("Data").join(PathBuf::from(dir_type.destination.unwrap_or_default()));
Ok(walk_files_recursive(&source_root)?
.map(|file| Self {
@@ -53,7 +53,7 @@ impl ModFile {
.strip_prefix(&from_mod.source)
.unwrap()
.to_owned(),
dest: dest_base.clone(),
dest: dest_base.join(file.path().strip_prefix(&source_root).unwrap()),
})
.collect())
}