pub struct Setup {Show 17 fields
pub image: Vec<u8>,
pub machine: String,
pub frames: i64,
pub presses: Vec<Press>,
pub seed: Option<i64>,
pub start_line: i64,
pub start_offset: i64,
pub vblank_dots: Option<i64>,
pub vertical_at_line_start: bool,
pub dma_resumes: bool,
pub psg: PsgSwitches,
pub timer_window: i64,
pub lines_follow_vce_bit2: bool,
pub device: String,
pub detail: Option<i64>,
pub out: Option<String>,
pub rest: Vec<String>,
}Expand description
How a traced machine is built: the command line shared by pce-trace,
pce-state-roundtrip and scripts/pce_trace.py (which builds the reference the same way).
Fields§
§image: Vec<u8>§machine: String§frames: i64§presses: Vec<Press>§seed: Option<i64>§start_line: i64§start_offset: i64§vblank_dots: Option<i64>§vertical_at_line_start: bool§dma_resumes: bool§psg: PsgSwitches§timer_window: i64§lines_follow_vce_bit2: bool§device: Stringpad2 (default), pad6, multitap, multitap-clr-low, none, fake-controller,
lockstep-card, lockstep-port, lockstep-path, tennokoe
detail: Option<i64>§out: Option<String>§rest: Vec<String>Arguments this parser does not know (a binary’s own).
Implementations§
Source§impl Setup
impl Setup
Sourcepub fn for_image(image: Vec<u8>) -> Setup
pub fn for_image(image: Vec<u8>) -> Setup
IMAGE [--machine pce|tg16] [--frames N] [--press SPEC]... [--seed N] [--start-line N] [--start-offset N] [--vblank-dots N|none] [--vertical-at-line-start] [--no-dma-resume] [--psg NAME=VALUE]... [--psg-variant NAME] [--timer-window N] [--no-bit2-lines] [--device NAME] [--detail FRAME] [--out FILE]
The reference’s defaults around a card image.
pub fn parse(args: &[String]) -> Result<Setup, String>
pub fn machine(&self) -> Result<Machine, String>
Sourcepub fn apply_presses(&self, system: &mut System)
pub fn apply_presses(&self, system: &mut System)
Hold the buttons of the presses for the frame about to run. Behind a multitap the same buttons go to ports 0 and 2.