feat: diagnostic exports

This commit is contained in:
2025-04-30 21:19:15 +00:00
parent edef5cc6dc
commit 2e17e0ae75
7 changed files with 83 additions and 16 deletions

View File

@ -29,6 +29,10 @@ impl PatchFileVec {
}
pub fn find_patches(&self, target: impl AsRef<Path>) -> Result<Vec<Patch>> {
if !target.as_ref().exists() {
log::warn!("invalid target path: {:?}", target.as_ref());
anyhow::bail!("Unable to open {:?}. Make sure the game path is correct.", target.as_ref());
}
let checksum = try_digest(target.as_ref())?;
let mut res_patches = Vec::new();