MCPcopy Index your code
hub / github.com/endbasic/endbasic / setup_sdl_console

Function setup_sdl_console

cli/src/console.rs:55–60  ·  view source on GitHub ↗
(
    spec: &mut ConsoleSpec,
    signals_tx: Sender<Signal>,
)

Source from the content-addressed store, hash-verified

53/// Instantiates a console factory for an SDL-backed console with the given `spec`.
54#[cfg(feature = "sdl")]
55pub fn setup_sdl_console(
56 spec: &mut ConsoleSpec,
57 signals_tx: Sender<Signal>,
58) -> io::Result<ConsoleHandles> {
59 endbasic_sdl::setup(spec, signals_tx, &endbasic_std::gfx::lcd::fonts::Fonts::all())
60}
61
62/// Instantiates a console factory for an SDL-backed console with the given `spec`.
63#[cfg(not(feature = "sdl"))]

Callers 1

setup_consoleFunction · 0.85

Calls 1

setupFunction · 0.85

Tested by

no test coverage detected