Skip to main content

FixtureRunnerConfig

Struct FixtureRunnerConfig 

Source
pub struct FixtureRunnerConfig {
    pub max_instructions: usize,
    pub load_address: u32,
    pub arrows_as_numpad: bool,
    pub menu_bar_policy: MenuBarPolicy,
    pub ui_theme: UiThemeId,
    pub theme_metrics_mode: ThemeMetricsMode,
    pub addressing_32_bit: bool,
    pub screen_depth: u16,
}
Expand description

Configuration knobs for FixtureRunner. Use FixtureRunnerConfig::default for the canonical defaults (10M-instruction budget, 0x10000 load base, arrow-keys NOT remapped to numpad, guest-controlled menu bar) — only override fields you actually need.

Fields§

§max_instructions: usize

Hard cap on instructions executed by the simpler unbounded FixtureRunner::run entry point. Not consulted by FixtureRunner::run_steps, which uses its own per-call max_steps argument. Default: 10,000,000.

§load_address: u32

Base address where 68k CODE segments are loaded into guest RAM. Default: 0x10000 (64 KiB above the low-mem globals). Most games tolerate the default; a few with hardcoded expectations about A5 placement may need a higher value.

§arrows_as_numpad: bool

When true, arrow key virtual key codes are remapped to their numpad equivalents. Useful on keyboards without a numeric keypad, since many classic Mac games use the numpad for movement. Inside Macintosh Volume V, V-191.

§menu_bar_policy: MenuBarPolicy

Host presentation policy for the classic Mac menu bar. The default honors guest MBarHeight and fullscreen transitions.

§ui_theme: UiThemeId

Selected UI rendering provider. The default classic-system7 provider represents the existing renderer; non-classic themes are explicit and must not alter guest-visible Toolbox behavior in classic metrics mode.

§theme_metrics_mode: ThemeMetricsMode

Declares whether theme rendering preserves classic guest metrics or opts into future themed hit/measurement behavior.

§addressing_32_bit: bool

Use the full 32-bit guest address, or mask memory accesses to the low 24 bits as on classic Macs running in 24-bit addressing mode.

§screen_depth: u16

Initial 68K main-framebuffer depth. Supported values are 1, 2, 4, and 8; the default remains 8-bit/256-color mode. Native PowerPC launches retain their architecture default unless FixtureRunner::set_powerpc_screen_depth is called explicitly.

Implementations§

Source§

impl FixtureRunnerConfig

Source

pub fn with_screen_depth(self, screen_depth: u16) -> Result<Self, String>

Validate and select the initial 68K indexed main-framebuffer depth. Use FixtureRunner::set_powerpc_screen_depth for an explicit native PowerPC launch depth.

Trait Implementations§

Source§

impl Default for FixtureRunnerConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more