| Crates.io | mupen64plus |
| lib.rs | mupen64plus |
| version | 0.3.0 |
| created_at | 2021-09-14 09:59:00.709544+00 |
| updated_at | 2024-01-19 15:45:56.16264+00 |
| description | High-level Rust bindings to the Mupen64Plus Core API |
| homepage | |
| repository | https://github.com/nanaian/mupen64plus-rs/ |
| max_upload_size | |
| id | 451163 |
| size | 75,667 |
High-level Rust bindings to the Mupen64Plus Core API.
use mupen64plus::{Core, Plugin};
let core = Core::load_from_directory(&path)
.or_else(|_| Core::load_from_system())?;
let mut mupen = core.start(Some(&path), Some(&path))?;
mupen.open_rom(&mut load_rom()?)?;
for name in &["video-glide64mk2", "audio-sdl", "input-sdl", "rsp-hle"] {
let p = format!("mupen64plus-{}.{}", name, std::env::consts::DLL_EXTENSION);
mupen.attach_plugin(Plugin::load_from_path(p)?)?;
}
mupen.execute()?;
A more detailed example can be found here, which can be run with:
cargo run --example frontend