Fix asset-tool invocations when downloading assets

This commit is contained in:
9382 2024-09-25 23:35:45 +01:00
parent 6f5a3c5176
commit b6a5324ae7
Signed by untrusted user: aidan9382
GPG Key ID: 9BF9CD918201F681

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()?;