mirror of
https://github.com/xavo95/repak.git
synced 2025-01-19 11:11:59 +00:00
15 lines
452 B
Rust
15 lines
452 B
Rust
|
fn main() -> Result<(), un_pak::Error> {
|
||
|
for version in un_pak::Version::iter().rev() {
|
||
|
match un_pak::PakFile::new(version, std::io::Cursor::new(include_bytes!("rando_p.pak"))) {
|
||
|
Ok(_) => {
|
||
|
println!("parsed successfully!");
|
||
|
return Ok(());
|
||
|
}
|
||
|
Err(e) => println!("{e}"),
|
||
|
}
|
||
|
}
|
||
|
Err(un_pak::Error::PakInvalid(
|
||
|
"no version can parse".to_string(),
|
||
|
))
|
||
|
}
|