fix file search

This commit is contained in:
Quaternions 2024-01-10 17:18:57 -08:00
parent 590062f3c3
commit f17a1a86a9

View File

@ -1195,8 +1195,8 @@ fn extract_textures(paths:Vec<std::path::PathBuf>,vpk_paths:Vec<std::path::PathB
}; };
let find_stuff=|search_file_name:String|{ 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()){ match pack.get(search_file_name.as_str())?{
Ok(file)=>return Ok(file), Some(file)=>return Ok(Some(file)),
_=>(), _=>(),
} }
//search pak list //search pak list