| Crates.io | pinmame-nvram |
| lib.rs | pinmame-nvram |
| version | 0.4.1 |
| created_at | 2024-12-04 08:17:30.039242+00 |
| updated_at | 2025-07-11 10:05:04.942545+00 |
| description | Rust library handling PinMAME NVRAM files |
| homepage | |
| repository | https://github.com/francisdb/pinmame-nvram |
| max_upload_size | |
| id | 1471690 |
| size | 5,634,949 |
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.