repak/examples/list.rs

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