pub struct Config {Show 13 fields
pub cycle_accurate: bool,
pub filter: VideoFilter,
pub region: NesRegion,
pub ram_state: RamState,
pub four_player: FourPlayer,
pub zapper: bool,
pub genie_codes: Vec<GenieCode>,
pub concurrent_dpad: bool,
pub channels_enabled: [bool; 6],
pub headless_mode: HeadlessMode,
pub data_dir: PathBuf,
pub mapper_revisions: MapperRevisionsConfig,
pub emulate_ppu_warmup: bool,
}
Expand description
Control deck configuration settings.
Fields§
§cycle_accurate: bool
Whether to emulate the NES with cycle accuracy or not. Increased CPU use, but more accurate emulation.
filter: VideoFilter
Video filter.
region: NesRegion
NES region.
ram_state: RamState
RAM initialization state.
four_player: FourPlayer
Four player adapter.
zapper: bool
Enable zapper gun.
genie_codes: Vec<GenieCode>
Game Genie codes.
concurrent_dpad: bool
Whether to support concurrent D-Pad input which wasn’t possible on the original NES.
channels_enabled: [bool; 6]
Apu channels enabled.
headless_mode: HeadlessMode
Headless mode.
data_dir: PathBuf
Data directory for storing battery-backed RAM.
mapper_revisions: MapperRevisionsConfig
Which mapper revisions to emulate for any ROM loaded that uses this mapper.
emulate_ppu_warmup: bool
Whether to emulate PPU warmup where writes to certain registers are ignored. Can result in some games not working correctly.
Implementations§
Source§impl Config
impl Config
Sourcepub const SRAM_EXTENSION: &'static str = "sram"
pub const SRAM_EXTENSION: &'static str = "sram"
File extension for battery-backed Cart RAM.
Sourcepub fn default_data_dir() -> PathBuf
pub fn default_data_dir() -> PathBuf
Returns the default directory where TetaNES data is stored.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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