summaryrefslogtreecommitdiff
path: root/src/bin/br.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-01-12 10:52:59 +1300
committerBen Bridle <ben@derelict.engineering>2025-01-12 10:52:59 +1300
commit8bfc20d44d3a0d040c6f7031f4975afd515e7424 (patch)
tree8c32aa0be4af33b4041b2084e1322aceec3d0c49 /src/bin/br.rs
parentbd9b53d9cf976539ed977e0535325ee12091543c (diff)
downloadbedrock-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.rs4
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);
};