ddsavelib
A nightly-rust library to decode and encode the binary Darkest Dungeon save file format.
Documentation
Usage
Cargo.toml
[]
= "0.1"
Example:
use ;
let json = r#"{ "__revision_dont_touch": 12345,
"base_root": { "soldier_class": -2101527251 }
}"#;
// Read the JSON file
let file1 = try_from_json.unwrap;
// Convert to binary
let mut bin_data = Vec new;
file1.write_to_bin.unwrap;
// Realize we know Jester is a class
let mut unhash = empty;
unhash.offer_name;
// Convert to JSON
let mut json_data = Vec new;
let file2 = try_from_bin.unwrap;
file2.write_to_json.unwrap;
let output_str = from_utf8.unwrap.replace.replace;
// We even managed to unhash Jester!
assert_eq!;
// The library performs verification of the input and doesn't panic.
let mut garbage_data: & = &;
assert!;