Add a checkbox to quit on disconnect

This commit is contained in:
2025-01-09 23:00:46 -05:00
parent d99344eb15
commit fd7298d24e
4 changed files with 37 additions and 11 deletions
+5
View File
@@ -5,6 +5,8 @@ pub use gdb::GdbServerWindow;
pub use input::InputWindow;
use winit::event::KeyEvent;
use crate::emulator::SimId;
mod about;
mod game;
mod game_screen;
@@ -13,6 +15,9 @@ mod input;
pub trait AppWindow {
fn viewport_id(&self) -> ViewportId;
fn sim_id(&self) -> SimId {
SimId::Player1
}
fn initial_viewport(&self) -> ViewportBuilder;
fn show(&mut self, ctx: &Context);
fn on_init(&mut self, render_state: &egui_wgpu::RenderState) {