From 738dd7801c8213228d39f83553a785f1219929c3 Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Tue, 15 Jul 2025 11:39:17 +1200 Subject: Add logging for starting and promoting a dynamic emulator This commit changes the message shown when starting the emulator with dynamic mode, to make it clear that the window will be hidden initially, and also adds a message for when the emulator window is made visible. --- src/bin/br/main.rs | 2 +- src/emulators/graphical_emulator.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/br/main.rs b/src/bin/br/main.rs index 8e88caf..11505cb 100644 --- a/src/bin/br/main.rs +++ b/src/bin/br/main.rs @@ -133,7 +133,7 @@ fn main() { if let Ok(phosphor) = Phosphor::new() { match mode { Mode::Dynamic => { - info!("Starting graphical emulator"); + info!("Starting graphical emulator (hidden)"); let mut emulator = GraphicalEmulator::new(config, debug); emulator.load_program(&bytecode); emulator.run(phosphor, false); diff --git a/src/emulators/graphical_emulator.rs b/src/emulators/graphical_emulator.rs index 7e75b61..3d7ea4a 100644 --- a/src/emulators/graphical_emulator.rs +++ b/src/emulators/graphical_emulator.rs @@ -261,6 +261,7 @@ impl WindowProgram for GraphicalEmulator { if !self.visible { if self.br.dev.input.accessed || self.br.dev.screen.accessed { + info!("Making window visible"); requests.write(Request::SetVisible(true)); self.visible = true; } -- cgit v1.2.3-70-g09d2