From a2408cd14317e1c0969953f8745034d78b2b9bcf Mon Sep 17 00:00:00 2001
From: Ben Bridle <ben@derelict.engineering>
Date: Mon, 3 Feb 2025 09:51:32 +1300
Subject: Use log crate for printing info and error messages

---
 src/emulators/graphical_emulator.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'src/emulators/graphical_emulator.rs')

diff --git a/src/emulators/graphical_emulator.rs b/src/emulators/graphical_emulator.rs
index 14848c6..1c58a34 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, verbose: bool) -> Self {
+    pub fn new(config: &EmulatorConfig, debug: bool) -> Self {
         let devices = GraphicalDeviceBus::new(config);
         Self {
             br: BedrockEmulator::new(devices),
-            debug: DebugState::new(debug, verbose, config.symbols_path.as_ref()),
+            debug: DebugState::new(debug, config.symbols_path.as_ref()),
             dimensions: config.dimensions,
             fullscreen: config.fullscreen,
             scale: config.scale,
@@ -147,7 +147,7 @@ impl GraphicalEmulator {
                 }
                 Some(Signal::Halt) => {
                     self.br.dev.loc.flush();
-                    self.debug.info("Program halted, exiting.");
+                    log::info!("Program halted, exiting.");
                     self.debug.debug_summary(&self.br.core);
                     return EmulatorSignal::Halt;
                 }
@@ -286,7 +286,7 @@ impl WindowProgram for GraphicalEmulator {
                 }
                 Some(Signal::Halt) => {
                     self.br.dev.loc.flush();
-                    self.debug.info("Program halted, exiting.");
+                    log::info!("Program halted, exiting.");
                     self.debug.debug_summary(&self.br.core);
                     requests.write(Request::CloseWindow);
                     break;
-- 
cgit v1.2.3-70-g09d2