gba_env 1.1.0

Crate for detecting the environment for GameBoy Advance ROMs (GBA/NDS/mGBA/VBA/gpSP/etc)
Documentation
  • Coverage
  • 70%
    14 out of 20 items documented0 out of 10 items with examples
  • Size
  • Source code size: 11.48 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.15 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • tolik518/gba_env
    5 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • tolik518

GBA env

Crate for detecting the environment for Game Boy Advance ROMs (GBA/NDS/mGBA/VBA/gpSP/etc)

You can find the documentation for gba_env here.

Usage

You would need to use the nightly rust version and add this to your Cargo.toml:

[dependencies]

gba_env = "1.0"

Then you can use the crate in your code:

use gba_env;
use gba_env::Environment;

fn main() {
    let env = gba_env::get_env();
    if env == Environment::GpSp {
        println!("Sorry, but this ROM is not supported on gpSP.");
    } 
}

License

This project is licensed under the GNU GPLv3 or MIT or Apache-2.0 License. Just pick the one that fits your needs.

Appendix

All the information about the GBA environment detection were taken from the gbadev Discord server. So a huge thanks to the gbadev community!