Skip to content

Releases: tolik518/gba_env

gba_env 1.1.0

26 May 17:15
Compare
Choose a tag to compare
  • Added NanoBoyAdvance check
  • Added keywords and categories to crates.io
  • Updated some docs
  • Fixed link to the docs

Full Changelog: 1.0.0...1.1.0

gba_env v1.0.0

22 May 20:39
Compare
Choose a tag to compare

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

You can find a download for a demo below