dustbox 0.0.1

PC x86 emulator with the goal of easily running MS-DOS games on Windows, macOS and Linux.
Documentation
/// GraphicCard indicates the gfx card generation to emulate
#[derive(Clone, Debug, PartialEq)]
pub enum GraphicCard {
    CGA, EGA, VGA, Tandy, PcJr,
}

impl GraphicCard {
     pub fn is_ega_vga(&self) -> bool {
        match *self {
            GraphicCard::EGA | GraphicCard::VGA => true,
            _ => false,
        }
    }
    pub fn is_tandy(&self) -> bool {
        match *self {
            GraphicCard::Tandy => true,
            _ => false,
        }
    }
    pub fn is_pc_jr(&self) -> bool {
        match *self {
            GraphicCard::PcJr => true,
            _ => false,
        }
    }
    pub fn is_cga(&self) -> bool {
        match *self {
            GraphicCard::CGA => true,
            _ => false,
        }
    }
    pub fn is_ega(&self) -> bool {
        match *self {
            GraphicCard::EGA => true,
            _ => false,
        }
    }
    pub fn is_vga(&self) -> bool {
        match *self {
            GraphicCard::VGA => true,
            _ => false,
        }
    }
}