summaryrefslogtreecommitdiff
path: root/src/emulators/graphical_emulator.rs
diff options
context:
space:
mode:
authorBen Bridle <bridle.benjamin@gmail.com>2024-10-29 14:03:04 +1300
committerBen Bridle <bridle.benjamin@gmail.com>2024-10-30 15:42:10 +1300
commit748974ef2c0e969e95cccc9cb061436d5a1d1b35 (patch)
treec9d2022669df04cdfd3d775497048222422c59c2 /src/emulators/graphical_emulator.rs
parentc42e2154d88c23a28f83fe96f4153e821ef00c0e (diff)
downloadbedrock-pc-748974ef2c0e969e95cccc9cb061436d5a1d1b35.zip
Load and display symbols in debug information
The assembler saves out symbols files, which are loaded automatically by the emulator when present. The name and location of the most recent label is displayed with the debug information when symbols are loaded.
Diffstat (limited to 'src/emulators/graphical_emulator.rs')
-rw-r--r--src/emulators/graphical_emulator.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emulators/graphical_emulator.rs b/src/emulators/graphical_emulator.rs
index a183262..bc6aaeb 100644
--- a/src/emulators/graphical_emulator.rs
+++ b/src/emulators/graphical_emulator.rs
@@ -115,7 +115,7 @@ impl GraphicalEmulator {
let devices = GraphicalDeviceBus::new(config);
Self {
br: BedrockEmulator::new(devices),
- debug: DebugState::new(debug),
+ debug: DebugState::new(debug, config.symbols_path.as_ref()),
dimensions: config.dimensions,
fullscreen: config.fullscreen,
scale: config.scale,