add mediatek bdp extractor (initial)

This commit is contained in:
theubusu
2025-10-16 21:04:49 +02:00
parent 3fe7ce6fde
commit 77a75ad40c
3 changed files with 160 additions and 3 deletions
+9 -2
View File
@@ -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!");
}
}
}