Amjad50 / plastic

NES emulator in rust with egui and TUI
MIT License
299 stars 12 forks source link

Unwrapping on gilrs::new() #18

Open silverhadch opened 1 day ago

silverhadch commented 1 day ago

The gilrs: Gilrs::new().unwrap(); could panic if the gamepad interface cannot be initialized (e.g., missing drivers or unsupported hardware).

Replace .unwrap() with a more graceful fallback, like logging the error and continuing without gamepad support.