No debugging unless the game is running

This commit is contained in:
2025-01-17 22:00:46 -05:00
parent f031bb17b2
commit 17d3811124
4 changed files with 54 additions and 14 deletions
+4
View File
@@ -305,6 +305,10 @@ impl Emulator {
}
fn start_debugging(&mut self, sim_id: SimId, sender: DebugSender) {
if self.sim_state[sim_id.to_index()].load(Ordering::Acquire) != SimState::Ready {
// Can't debug unless a game is connected
return;
}
let debug = DebugInfo {
sender,
stop_reason: Some(DebugStopReason::Trapped),