epk2: fix extraction

This commit is contained in:
theubusu
2026-02-10 20:32:37 +01:00
parent 4b8c878ef1
commit e06ba58725
+2
View File
@@ -75,6 +75,8 @@ pub fn is_epk2_file(file: &File) -> bool {
}
pub fn extract_epk2(mut file: &File, output_folder: &str) -> Result<(), Box<dyn std::error::Error>> {
file.seek(SeekFrom::Start(0))?;
let _header_signature = common::read_exact(&mut file, SIGNATURE_SIZE as usize)?;
let stored_header = common::read_exact(&mut file, 1584)?; //max header size