From 0fb469b9d05c3595a4bd4ed7ed515b24a399406c Mon Sep 17 00:00:00 2001 From: Brett Mayson Date: Fri, 18 Oct 2024 09:33:32 +0000 Subject: [PATCH] more trim --- bin/src/modules/binarize/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/src/modules/binarize/mod.rs b/bin/src/modules/binarize/mod.rs index 3c5b76df..f0b5f8d1 100644 --- a/bin/src/modules/binarize/mod.rs +++ b/bin/src/modules/binarize/mod.rs @@ -88,7 +88,9 @@ impl Module for Binarize { let mut report = Report::new(); let tools_path = { - let default = dirs::home_dir().expect("home directory exists").join(".local/share/arma3tools"); + let default = dirs::home_dir() + .expect("home directory exists") + .join(".local/share/arma3tools"); if let Ok(path) = std::env::var("HEMTT_BI_TOOLS") { PathBuf::from(path) } else { @@ -290,11 +292,13 @@ impl Module for Binarize { .source .trim_start_matches(ctx.tmp().to_str().expect("path is valid utf-8")) .trim_start_matches('/') + .trim_start_matches('\\') .replace('/', "\\"), &target .output .trim_start_matches(ctx.tmp().to_str().expect("path is valid utf-8")) .trim_start_matches('/') + .trim_start_matches('\\') .replace('/', "\\"), &target.entry.replace('/', "\\"), ])