pub struct UnifImage {
pub board: String,
pub mapper_id: u16,
pub prg_rom: Vec<u8>,
pub chr_rom: Vec<u8>,
pub mirroring: Mirroring,
pub has_battery: bool,
pub region: Region,
}Expand description
A parsed + resolved UNIF image, ready to build a crate::Cartridge.
Fields§
§board: StringThe raw MAPR board name (NUL trimmed), e.g. "NES-NROM".
mapper_id: u16iNES mapper id resolved from Self::board via board_to_mapper.
prg_rom: Vec<u8>PRG-ROM: PRG0..PRGF chunks concatenated in ascending index order.
chr_rom: Vec<u8>CHR-ROM: CHR0..CHRF concatenated (empty ⇒ the board uses CHR-RAM).
mirroring: MirroringInitial mirroring from the MIRR chunk (default horizontal).
has_battery: booltrue if a BATR chunk was present (battery-backed save RAM).
region: RegionRegion from the TVCI chunk (NTSC default; “both” maps to NTSC).
Trait Implementations§
impl Eq for UnifImage
impl StructuralPartialEq for UnifImage
Auto Trait Implementations§
impl Freeze for UnifImage
impl RefUnwindSafe for UnifImage
impl Send for UnifImage
impl Sync for UnifImage
impl Unpin for UnifImage
impl UnsafeUnpin for UnifImage
impl UnwindSafe for UnifImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more