mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-16 05:04:22 +02:00
prepare for encrypted hdr epk2/epk3
This commit is contained in:
+8
-2
@@ -70,11 +70,17 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
else if formats::epk1::is_epk1_file(&file) {
|
||||
println!("EPK1 file detected!");
|
||||
formats::epk1::extract_epk1(&file, &output_path)?;
|
||||
}
|
||||
}
|
||||
//epk2 with unencrypted header
|
||||
else if formats::epk2::is_epk2_file(&file) {
|
||||
println!("EPK2 file detected!");
|
||||
formats::epk2::extract_epk2(&file, &output_path)?;
|
||||
}
|
||||
}
|
||||
//epk with encrypted header - it can be epk2 or epk3 so we need to check
|
||||
else if formats::epk::is_epk_file(&file) {
|
||||
println!("EPK file detected!");
|
||||
formats::epk::extract_epk(&file, &output_path)?;
|
||||
}
|
||||
else if formats::pfl_upg::is_pfl_upg_file(&file) {
|
||||
println!("PFL UPG file detected!");
|
||||
formats::pfl_upg::extract_pfl_upg(&file, &output_path)?;
|
||||
|
||||
Reference in New Issue
Block a user