#rom #extract #snes #utilites #video #makeup #snesutilities

app ioncodes/snesutils

SNES Rom extraction utilites

1 unstable release

Uses old Rust 2015

0.1.0 Mar 1, 2017

#3 in #utilites

5 stars & 3 watchers

27KB
558 lines

snesutilities

Utilities to gather data out of roms. Written in Rust. It (should) support all types.

How

Have a look at main.rs:

use snesutilities::SnesUtils;
let suz = SnesUtils::new("./zelda.sfc".to_string());
println!("Internal Name: {}", suz.internal_name);
println!("Rom Type: {:?}", suz.rom_type);
println!("Rom Makeup Type: {:?}", suz.rom_makeup_type);
println!("ROM Size: {:?}", suz.rom_size);
println!("SRAM Size: {:?}", suz.sram_size);
println!("Video Mode: {:#?}", suz.video_mode);
println!("License: {:#?}\n", suz.license);

Features

These informations can be parsed:

  • Internal Name
  • Rom Type
  • Rom Makeup Type
  • ROM Size
  • SRAM Size
  • Video Mode
  • License (Owner)

Specifications

Rom Type:

pub enum RomType {
    ROM = 0,
    ROMRAM = 1,
    ROMSRAM = 2,
    ROMDSP1 = 3,
    ROMDSP1RAM = 4,
    ROMDSP1SRAM = 5,
    FX = 6,
    Unknown,
}

Rom Makeup Type:

pub enum RomMakupType {
    LoROM = 32,
    HiROM = 33,
    LoROMFastROM = 48,
    HiROMFastROM = 49,
    ExLoROM = 50,
    ExHiROM = 53,
    Unknown,
}

Video Mode:

pub struct VideoMode {
    pub country: String,
    pub mode: String,
}

No runtime deps