From 045a159fa53b61dd79dff405158f66f952322a9d Mon Sep 17 00:00:00 2001 From: Astatin Date: Wed, 18 Jun 2025 19:00:19 +0200 Subject: Set default zoom to x4 + add --title option to change window titles --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index cee08f2..20bfc9c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,6 +62,10 @@ struct Cli { /// Dump state to files on stop #[arg(long, default_value_t = false)] stop_dump_state: bool, + + /// Window title + #[arg(long, default_value = "Gameboy Emulator")] + title: String } fn main() { @@ -70,7 +74,7 @@ fn main() { println!("Starting {:?}...", &cli.rom); let serial = desktop::serial::UnconnectedSerial {}; - let window = desktop::window::DesktopWindow::new().unwrap(); + let window = desktop::window::DesktopWindow::new(cli.title).unwrap(); let mut gamepad: Box = if let Some(record_file) = cli.replay_input { Box::new(GamepadReplay::new(record_file)) -- cgit v1.2.3-70-g09d2