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/bin/br.rs | |
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/bin/br.rs')
-rw-r--r-- | src/bin/br.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/br.rs b/src/bin/br.rs index 9f6c10e..431ae39 100644 --- a/src/bin/br.rs +++ b/src/bin/br.rs @@ -83,7 +83,7 @@ fn main_run(args: Run) { false => None, }; - let mut graphical = GraphicalEmulator::new(&config, args.debug); + let mut graphical = GraphicalEmulator::new(&config, args.debug, unsafe {VERBOSE}); graphical.load_program(&bytecode); if let EmulatorSignal::Promote = graphical.run() { let program_name = match &metadata { @@ -109,7 +109,7 @@ fn main_run(args: Run) { } } else { verbose!("Starting headless emulator"); - let mut headless = HeadlessEmulator::new(&config, args.debug); + let mut headless = HeadlessEmulator::new(&config, args.debug, unsafe {VERBOSE}); headless.load_program(&bytecode); headless.run(args.debug); }; |