repak/examples/list.rs
2023-01-13 12:12:39 +00:00

11 lines
312 B
Rust

fn main() -> Result<(), un_pak::Error> {
let pak = un_pak::Pak::new(
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
un_pak::Version::CompressionEncryption,
None,
)?;
for file in pak.entries.keys() {
println!("{file}")
}
Ok(())
}