WIP pfl upg extractor

This commit is contained in:
theubusu
2025-09-27 00:31:18 +02:00
parent 81fd148cb8
commit 6e8fd5f0cc
7 changed files with 441 additions and 29 deletions
+7 -2
View File
@@ -1,8 +1,9 @@
mod common;
mod formats;
use clap::Parser;
use std::path::{PathBuf};
use std::fs::{File};
mod formats;
mod common;
#[derive(Parser, Debug)]
struct Args {
@@ -38,6 +39,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("TPV TIMG file detected!");
println!();
formats::tpv_timg::extract_tpv_timg(&file, &output_path)?;
} else if formats::pfl_upg::is_pfl_upg_file(&file) {
println!("PFL UPG file detected!");
println!();
formats::pfl_upg::extract_pfl_upg(&file, &output_path)?;
} else if formats::mstar::is_mstar_file(&file) {
println!("Mstar upgrade file detected!");
println!();