repak/examples/list.rs

11 lines
298 B
Rust
Raw Normal View History

2023-01-11 13:52:40 +00:00
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,
)?;
for file in pak.entries.keys() {
println!("{file}")
}
Ok(())
}