From 8bfc20d44d3a0d040c6f7031f4975afd515e7424 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 12 Jan 2025 10:52:59 +1300 Subject: Only print halt messages if the verbose flag is set This required passing the verbose flag state down into the DebugState structure. --- src/emulators/graphical_emulator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emulators/graphical_emulator.rs') diff --git a/src/emulators/graphical_emulator.rs b/src/emulators/graphical_emulator.rs index 008214c..14848c6 100644 --- a/src/emulators/graphical_emulator.rs +++ b/src/emulators/graphical_emulator.rs @@ -111,11 +111,11 @@ pub struct GraphicalEmulator { } impl GraphicalEmulator { - pub fn new(config: &EmulatorConfig, debug: bool) -> Self { + pub fn new(config: &EmulatorConfig, debug: bool, verbose: bool) -> Self { let devices = GraphicalDeviceBus::new(config); Self { br: BedrockEmulator::new(devices), - debug: DebugState::new(debug, config.symbols_path.as_ref()), + debug: DebugState::new(debug, verbose, config.symbols_path.as_ref()), dimensions: config.dimensions, fullscreen: config.fullscreen, scale: config.scale, -- cgit v1.2.3-70-g09d2