| Crates.io | pinmame-nvram |
| lib.rs | pinmame-nvram |
| version | 0.4.4 |
| created_at | 2024-12-04 08:17:30.039242+00 |
| updated_at | 2025-12-16 21:33:44.88516+00 |
| description | Rust library handling PinMAME NVRAM files |
| homepage | |
| repository | https://github.com/francisdb/pinmame-nvram |
| max_upload_size | |
| id | 1471690 |
| size | 6,641,447 |
Rust library handling PinMAME NVRAM files.
Add the pinmame-nvram dependency to your project
cargo add pinmame-nvram
Example code for reading scores:
use pinmame_nvram::Nvram;
fn main() {
let mut nvram = Nvram::open(Path::new("afm_113b.nv")).unwrap().unwrap();
let scores = nvram.read_highscores().unwrap();
for score in &scores {
println!("{} {} {}", score.label.unwrap(), score.initials, score.score);
}
}
This library makes use of the PinMAME NVRAM Maps project. The maps are embedded in the library and are used to look up values in the nvram files.
Make sure you have Rust and Cargo installed. Then clone the repository.
Check out the submodules:
git submodule update --init --recursive
Run the tests:
cargo test