Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bates64/mupen64plus-rs
High-level Rust bindings to the Mupen64Plus Core API
https://github.com/bates64/mupen64plus-rs
Last synced: about 1 month ago
JSON representation
High-level Rust bindings to the Mupen64Plus Core API
- Host: GitHub
- URL: https://github.com/bates64/mupen64plus-rs
- Owner: bates64
- License: gpl-2.0
- Created: 2021-09-14T09:52:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T15:45:33.000Z (12 months ago)
- Last Synced: 2024-11-11T21:52:25.241Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mupen64plus
[![crates.io badge][crates-io-badge]][crates-io-url]
[![docs.rs badge][docs-rs-badge]][docs-rs-url][crates-io-badge]: https://img.shields.io/crates/v/mupen64plus.svg
[crates-io-url]: https://crates.io/crates/mupen64plus
[docs-rs-badge]: https://docs.rs/mupen64plus/badge.svg
[docs-rs-url]: https://docs.rs/mupen64plusHigh-level Rust bindings to the [Mupen64Plus Core API](https://mupen64plus.org/wiki/index.php?title=Mupen64Plus_v2.0_Core_API_v1.0#Core_API).
```rs
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](examples/frontend.rs), which can be run with:
```bash
cargo run --example frontend
```