restbl
A simple library to handle RSTB/RESTBL (resource size table) files from The Legend of Zelda: Tears of the Kingdom. Features:
- Quick, zero-allocation parser
- Optional
allocfeature to support editable table which can be serialized to binary or (with theyamlfeature) YAML. no_stdsupport (optionalstdfeature)- optional Serde support (
serdefeature) aarch64-nintendo-switch-freestandingsupport (without thestdfeature)
Example Usage
use ResTblReader;
let bytes = read.unwrap;
// Setup the quick, zero-allocation reader
let reader = new.unwrap;
// Lookup an RSTB value
assert_eq!;
Building for Switch
To build for Switch, you will need to use the
aarch64-nintendo-switch-freestanding target. The std feature is not
supported, so you will need to use --no-default-features. Since cargo nx does not seem to support
passing feature flags, you will need to run the full command yourself, as
follows:
cargo build -Z build-std=core,compiler_builtins,alloc --target aarch64-nintendo-switch-freestanding --no-default-features
License
This software is licensed under the terms of the GNU General Public License, version 3 or later.
License: GPL-3.0-or-later