Enum PaletteInit
pub enum PaletteInit {
Zeroed,
Blargg,
}Expand description
v2.1.7 P5 — selectable power-up palette-RAM contents.
The 2C02’s palette RAM is not cleared at power-on; different consoles (and
thus different emulator authors’ reference dumps) come up with different
garbage. This is a documented power-up option, default-off: Default
(Self::Zeroed) keeps RustyNES’s established all-zero power-up palette,
so default rendering is byte-identical. It writes only Ppu::palette_ram,
which is already part of the save-state snapshot, so it needs no
snapshot-format change.
Variants§
Zeroed
Default. All 32 palette-RAM bytes power up to 0x00 — RustyNES’s
established deterministic power-up state. Byte-identical.
Blargg
The canonical “Blargg” power-up palette dump (the 32-byte pattern used by
blargg’s NES and mirrored by TriCNES’s BlarggPalette). A documented,
deterministic known pattern for software that samples uninitialized
palette RAM before writing it. Opt-in.
Trait Implementations§
§impl Clone for PaletteInit
impl Clone for PaletteInit
§fn clone(&self) -> PaletteInit
fn clone(&self) -> PaletteInit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more