Support playing roms by dragging into window

This commit is contained in:
2026-08-15 00:18:39 -04:00
parent 4f3dc85bb4
commit 1d4c6c9e88
3 changed files with 19 additions and 1 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
use std::sync::Arc;
use std::{path::PathBuf, sync::Arc};
pub use about::AboutWindow;
use egui::{Ui, ViewportBuilder};
@@ -47,6 +47,10 @@ pub trait AppWindow {
let _ = event;
false
}
fn handle_dropped_file(&mut self, path: PathBuf) -> bool {
let _ = path;
false
}
}
pub struct InitArgs<'a> {