mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-16 05:04:22 +02:00
add mediatek bdp extractor (initial)
This commit is contained in:
+9
-2
@@ -97,9 +97,16 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
else if formats::mtk_upgrade_loader::is_mtk_upgrade_loader_file(&file) {
|
||||
println!("MTK upgrade_loader file detected!");
|
||||
formats::mtk_upgrade_loader::extract_mtk_upgrade_loader(&file, &output_path)?;
|
||||
}
|
||||
}
|
||||
else {
|
||||
println!("Input format not recognized!");
|
||||
// I dont like this need to pass result from search to avoid searching twice
|
||||
let mtk_bdp_result = formats::mtk_bdp::is_mtk_bdp_file(&file);
|
||||
if mtk_bdp_result.is_some() {
|
||||
println!("MTK BDP file detected!\n");
|
||||
formats::mtk_bdp::extract_mtk_bdp(&file, &output_path, mtk_bdp_result)?;
|
||||
} else {
|
||||
println!("Input format not recognized!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user