Add UI for a terminal

This commit is contained in:
2025-05-30 22:25:08 -04:00
parent 8be866656a
commit 2d18aeaba2
5 changed files with 79 additions and 1 deletions
+5
View File
@@ -645,6 +645,10 @@ impl Emulator {
};
sim.remove_watchpoint(address, length, watch);
}
EmulatorCommand::ConnectTerminal(sim_id, terminal_sink) => {
// TODO
let _ = (sim_id, terminal_sink);
}
EmulatorCommand::SetAudioEnabled(p1, p2) => {
self.audio_on[SimId::Player1.to_index()].store(p1, Ordering::Release);
self.audio_on[SimId::Player2.to_index()].store(p2, Ordering::Release);
@@ -718,6 +722,7 @@ pub enum EmulatorCommand {
RemoveBreakpoint(SimId, u32),
AddWatchpoint(SimId, u32, usize, VBWatchpointType),
RemoveWatchpoint(SimId, u32, usize, VBWatchpointType),
ConnectTerminal(SimId, mpsc::Sender<String>),
SetAudioEnabled(bool, bool),
Link,
Unlink,