#emulation #mame #pinmame #virtual-pinball

pinmame-nvram

Rust library handling PinMAME NVRAM files

10 releases

new 0.3.4 Dec 21, 2024
0.3.3 Dec 16, 2024
0.2.2 Dec 9, 2024
0.1.1 Dec 4, 2024

#334 in Game dev

Download history 177/week @ 2024-11-29 528/week @ 2024-12-06 365/week @ 2024-12-13

1,070 downloads per month

MIT license

200KB
2K SLoC

pinmame-nvram

Rust library handling PinMAME NVRAM files.

Usage

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);
    }
}

Attributions

This program makes use of content from the PinMAME NVRAM Maps project. The maps are embedded in the library and are used to look up values in the nvram files.

Dependencies

~8MB
~298K SLoC