mirror of
https://github.com/mbilker/kbinxml-rs.git
synced 2026-09-13 13:05:16 -05:00
readme: update with new information
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
|
||||
An encoder/decoder for Konami's binary XML format, used in many of their games.
|
||||
|
||||
Requires Rust 1.34 or newer!
|
||||
|
||||
### Setup
|
||||
|
||||
- Setup Rust Nightly through `rustup` or your own preferred method of acquiring the nightly version of Rust
|
||||
- Setup Rust through `rustup` or your own preferred method of acquiring Rust
|
||||
- For using `kbinxml-rs` as a library, add it as a dependency in your `Cargo.toml` file
|
||||
- For using `kbinxml-rs` as a standalone application, install `kbinxml-rs` using `cargo install kbinxml` (Note: This will not work at the moment as `kbinxml-rs` has not yet been published to [crates.io](https://crates.io))
|
||||
- For using `kbinxml-rs` as a standalone application, install `kbinxml-rs` using `cargo install kbinxml --features=build_binary` (Note: This will not work at the moment as `kbinxml-rs` has not yet been published to [crates.io](https://crates.io))
|
||||
|
||||
To be written.
|
||||
|
||||
@@ -155,10 +155,9 @@ impl<'a> TextXmlReader<'a> {
|
||||
|
||||
count = num_count as usize;
|
||||
} else if attr.key == b"__size" {
|
||||
let value =
|
||||
str::from_utf8(&*value)?
|
||||
.parse::<usize>()
|
||||
.context(ParseBinarySize)?;
|
||||
let value = str::from_utf8(&*value)?
|
||||
.parse::<usize>()
|
||||
.context(ParseBinarySize)?;
|
||||
|
||||
size = Some(value);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user