Skip to main content

board_to_mapper

Function board_to_mapper 

Source
pub fn board_to_mapper(board: &str) -> Option<u16>
Expand description

Resolve a UNIF MAPR board name to its iNES mapper id, or None if the board is unknown / not implemented by RustyNES.

Matching is case-insensitive and tolerant of the standard UNIF vendor prefixes (NES-, HVC-, UNL-, BMC-, BTL-) — "NES-NROM" and "NROM" both resolve to mapper 0. The table is the RustyNES-implemented subset (porting an unimplemented board would only fail later in dispatch); it is not the full UNIF board universe.