print all searches

This commit is contained in:
Quaternions 2024-01-10 16:46:48 -08:00
parent e833d4c032
commit 48d3fca895

View File

@ -1087,7 +1087,6 @@ fn get_some_texture(material:vmt_parser::material::Material)->AResult<VMTContent
}
fn get_vmt<F:Fn(String)->AResult<Option<Vec<u8>>>>(find_stuff:&F,search_name:String)->AResult<vmt_parser::material::Material>{
println!("looking for {}",search_name);
if let Some(stuff)=find_stuff(search_name)?{
//decode vmt and then write
let stuff=String::from_utf8(stuff)?;
@ -1193,7 +1192,7 @@ fn extract_textures(paths:Vec<std::path::PathBuf>,vpk_path:std::path::PathBuf)->
Ok::<(),anyhow::Error>(())
};
let find_stuff=|search_file_name:String|{
//println!("search_file_name={}",search_file_name);
println!("search_file_name={}",search_file_name);
match pack.get(search_file_name.as_str()){
Ok(file)=>return Ok(file),
_=>(),