pub struct VsDbEntry {
pub vs_dip: u8,
pub vs_ppu_type: VsPpuType,
pub dual_system: bool,
}Expand description
A single Vs. System per-game database entry.
Fields§
§vs_dip: u8The game’s factory-default DIP-switch bank, in this emulator’s encoding
(switch 1 = bit 0 .. switch 8 = bit 7). MAME DSW0 default.
vs_ppu_type: VsPpuTypeThe correct Vs. System PPU type (output palette + 2C05 quirks). Supplies the right colour LUT for iNES-1.0 dumps that default to the 2C03.
dual_system: booltrue for a Vs. DualSystem cart (two CPUs + two PPUs sharing an
inter-CPU latch — Tennis / Mahjong / Wrecking Crew / Balloon Fight).
v2.0.0 beta.5: crate::Emu::from_rom routes these to the full
two-console crate::VsDualSystem wrapper. This flag is the
load-bearing detection source for the circulating iNES-1.0 dumps,
whose headers carry no NES 2.0 byte-13 Vs. hardware type (see
docs/audit/vs-dualsystem-design-2026-06-11.md).
Trait Implementations§
impl Copy for VsDbEntry
impl Eq for VsDbEntry
impl StructuralPartialEq for VsDbEntry
Auto Trait Implementations§
impl Freeze for VsDbEntry
impl RefUnwindSafe for VsDbEntry
impl Send for VsDbEntry
impl Sync for VsDbEntry
impl Unpin for VsDbEntry
impl UnsafeUnpin for VsDbEntry
impl UnwindSafe for VsDbEntry
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