diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-01-12 10:52:59 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-01-12 10:52:59 +1300 |
commit | 8bfc20d44d3a0d040c6f7031f4975afd515e7424 (patch) | |
tree | 8c32aa0be4af33b4041b2084e1322aceec3d0c49 /src/emulators | |
parent | bd9b53d9cf976539ed977e0535325ee12091543c (diff) | |
download | bedrock-pc-8bfc20d44d3a0d040c6f7031f4975afd515e7424.zip |
Only print halt messages if the verbose flag is set
This required passing the verbose flag state down into the DebugState
structure.
Diffstat (limited to 'src/emulators')
-rw-r--r-- | src/emulators/graphical_emulator.rs | 4 | ||||
-rw-r--r-- | src/emulators/headless_emulator.rs | 4 |
2 files changed, 4 insertions, 4 deletions
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, diff --git a/src/emulators/headless_emulator.rs b/src/emulators/headless_emulator.rs index c508037..f215db3 100644 --- a/src/emulators/headless_emulator.rs +++ b/src/emulators/headless_emulator.rs @@ -86,10 +86,10 @@ pub struct HeadlessEmulator { } impl HeadlessEmulator { - pub fn new(config: &EmulatorConfig, debug: bool) -> Self { + pub fn new(config: &EmulatorConfig, debug: bool, verbose: bool) -> Self { Self { br: BedrockEmulator::new(HeadlessDeviceBus::new(config)), - debug: DebugState::new(debug, config.symbols_path.as_ref()), + debug: DebugState::new(debug, verbose, config.symbols_path.as_ref()), } } |