rpkg-rs 1.3.1

Parse Glacier ResourcePackage (rpkg) files, allowing access to the resources stored within.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use rpkg_rs::resource::legacy::Format;
use rpkg_rs::resource::runtime_resource_id::RuntimeResourceID;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let package = rpkg_rs::resource::legacy::read_package_from_file(Format::CL535848, "/media/dafitius/980 PRO/HitmanProjects/leaked_tools/Hitman IO/Runtime/chunk0.rpkg")?;
    println!("Package contains {} resources!", package.resources().len());

    let data = package.read_resource(&RuntimeResourceID::from_hex_string("00204D1AFD76AB13")?)?;
    println!("{}", String::from_utf8_lossy(&data));
    Ok(())
}