From b6a5324ae7fb7f5629009c7b336690780ff1303e Mon Sep 17 00:00:00 2001 From: 9382 Date: Wed, 25 Sep 2024 23:35:45 +0100 Subject: [PATCH] Fix asset-tool invocations when downloading assets --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 835ece5..ef42af5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -247,7 +247,7 @@ fn download_textures(paths:Vec)->AResult<()>{ let texture_list_string=texture_list.into_iter().map(|id|id.to_string()).collect::>(); 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)->AResult<()>{ let mesh_list_string=mesh_list.into_iter().map(|id|id.to_string()).collect::>(); 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()?;