summaryrefslogtreecommitdiff
path: root/src/emulators/graphical_emulator.rs
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2025-02-03 09:51:32 +1300
committerBen Bridle <ben@derelict.engineering>2025-02-03 09:51:32 +1300
commita2408cd14317e1c0969953f8745034d78b2b9bcf (patch)
treeaf1224a20b8d4d62790c9a6935986b84f1bb87d7 /src/emulators/graphical_emulator.rs
parent0070a300bc281d15a695709b7dd2e1cb9017913a (diff)
downloadbedrock-pc-a2408cd14317e1c0969953f8745034d78b2b9bcf.zip
Use log crate for printing info and error messages
Diffstat (limited to 'src/emulators/graphical_emulator.rs')
-rw-r--r--src/emulators/graphical_emulator.rs8
1 files changed, 4 insertions, 4 deletions
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;