Skip to content

Commit

Permalink
use python arma3-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 18, 2024
1 parent 6c890d2 commit c33eed0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/src/modules/binarize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use hemtt_workspace::reporting::Severity;
use rayon::prelude::{IntoParallelRefIterator, ParallelIterator};
use vfs::VfsFileType;

#[allow(unused_imports)] // some are Linux only
use self::error::{
bbe3_binarize_failed::BinarizeFailed, bbw1_tools_not_found::ToolsNotFound,
bbw2_platform_not_supported::PlatformNotSupported,
Expand Down Expand Up @@ -62,11 +63,11 @@ impl Module for Binarize {
trace!("Using Binarize path from registry");
let hkcu = winreg::RegKey::predef(winreg::enums::HKEY_CURRENT_USER);
let Ok(key) = hkcu.open_subkey("Software\\Bohemia Interactive\\binarize") else {
report.push(ToolsNotFound::code());
report.push(ToolsNotFound::code(Severity::Warning));
return Ok(report);
};
let Ok(path) = key.get_value::<String, _>("path") else {
report.push(ToolsNotFound::code());
report.push(ToolsNotFound::code(Severity::Warning));
return Ok(report);
};
PathBuf::from(path)
Expand Down

0 comments on commit c33eed0

Please sign in to comment.