Fix using download-textures/download-meshes; automatically create some subfolders #3

Merged
Quaternions merged 2 commits from aidan9382/map-tool:master into master 2024-09-26 02:00:09 +00:00
Showing only changes of commit b6a5324ae7 - Show all commits

View File

@ -247,7 +247,7 @@ fn download_textures(paths:Vec<PathBuf>)->AResult<()>{
let texture_list_string=texture_list.into_iter().map(|id|id.to_string()).collect::<Vec<String>>();
println!("Texture list:{:?}",texture_list_string.join(" "));
let output=std::process::Command::new("asset-tool")
.args(["download","environment","RBXCOOKIE","textures/unprocessed/"])
.args(["download","--cookie-literal","","--output-folder","textures/unprocessed/"])
.args(texture_list_string)
.spawn()?
.wait_with_output()?;
@ -282,7 +282,7 @@ fn download_meshes(paths:Vec<PathBuf>)->AResult<()>{
let mesh_list_string=mesh_list.into_iter().map(|id|id.to_string()).collect::<Vec<String>>();
println!("Mesh list:{:?}",mesh_list_string.join(" "));
let output=std::process::Command::new("asset-tool")
.args(["download","environment","RBXCOOKIE","meshes/"])
.args(["download","--cookie-literal","","--output-folder","meshes/"])
.args(mesh_list_string)
.spawn()?
.wait_with_output()?;