fixed dest on ModFile
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user