From 43b756bf8e9beabd580dbe7d58498fbcf7b4475a Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 10 Jan 2024 17:58:10 -0800 Subject: [PATCH] tweaks --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index e10c755..cd26be8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1104,15 +1104,15 @@ fn recursive_vmt_loaderAResult>>>(find_stuff:&F,ma VMTContent::VMT(s)=>recursive_vmt_loader(find_stuff,get_vmt(find_stuff,s)?), VMTContent::VTF(s)=>find_stuff(s), VMTContent::Patch(mat)=>recursive_vmt_loader(find_stuff, - mat.resolve(|search_name| + mat.resolve(|search_name|{ match find_stuff(search_name.to_string())?{ Some(bytes)=>Ok(String::from_utf8(bytes)?), None=>Err(anyhow::Error::msg("could not find vmt")), } - )? + })? ), - VMTContent::Unsupported=>Err(anyhow::Error::msg("Unsupported vmt")), - VMTContent::Unresolved=>Err(anyhow::Error::msg("Unresolved vmt")), + VMTContent::Unsupported=>{println!("Unsupported vmt");Ok(None)},//print and move on + VMTContent::Unresolved=>{println!("Unresolved vmt");Ok(None)}, } }