fparkan/libnres
Renovate Bot 729c972573
Some checks failed
renovate/artifacts Artifact file update failure
test suite / cargo test (push) Successful in 1m33s
test suite / cargo test (pull_request) Successful in 1m33s
Update Rust crate thiserror to v2
2024-11-10 21:05:05 +00:00
..
src Перенос старых наработок в новый репозиторий 2023-09-17 02:45:17 +04:00
Cargo.toml Update Rust crate thiserror to v2 2024-11-10 21:05:05 +00:00
README.md Перенос старых наработок в новый репозиторий 2023-09-17 02:45:17 +04:00

Library for NRes files (Deprecated)

Library for viewing and retrieving game resources of the game "Parkan: Iron Strategy". All versions of the game are supported: Demo, IS, IS: Part 1, IS: Part 2. Supports files with lib, trf, rlb extensions.

The files gamefont.rlb and sprites.lib are not supported. This files have an unknown signature.

Example

Example of extracting game resources:

fn main() {
    let file = std::fs::File::open("./voices.lib").unwrap();
    // Extracting the list of files
    let list = libnres::reader::get_list(&file).unwrap();

    for element in list {
        // Extracting the contents of the file
        let data = libnres::reader::get_file(&file, &element).unwrap();
    }
}