repak/examples/list.rs

11 lines
306 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.files() {
println!("{file}");
}
Ok(())
}