mirror of
https://github.com/Ap0dexMe0/unixtract.git
synced 2026-07-16 05:04:22 +02:00
Overhaul epk(epk1,epk2,epk3), add epk2b type extractor
This commit is contained in:
+8
-4
@@ -90,16 +90,20 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
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)?;
|
||||
else if formats::epk2b::is_epk2b_file(&file) {
|
||||
println!("EPK2B file detected!");
|
||||
formats::epk2b::extract_epk2b(&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)?;
|
||||
}
|
||||
//epk2 with unencrypted header
|
||||
else if formats::epk2::is_epk2_file(&file) {
|
||||
println!("EPK2 file detected!");
|
||||
formats::epk2::extract_epk2(&file, &output_path)?;
|
||||
}
|
||||
else if formats::ruf::is_ruf_file(&file) {
|
||||
println!("RUF file detected!");
|
||||
formats::ruf::extract_ruf(&file, &output_path)?;
|
||||
|
||||
Reference in New Issue
Block a user