fox32: Allow any file type to be selected for mounting

This commit is contained in:
ry755 2022-01-30 02:49:07 -08:00 committed by Ry
parent 64035f9629
commit 6a319071c0

View File

@ -34,9 +34,10 @@ impl DiskController {
}
pub fn select_file(&self) -> Option<File> {
let path = FileDialog::new()
.add_filter("disk image", &["img", "dsk"])
.add_filter("f32 binary", &["f32"])
.add_filter("raw binary", &["bin"])
.add_filter("Disk Image", &["img", "dsk"])
.add_filter("f32 Binary", &["f32"])
.add_filter("Raw Binary", &["bin"])
.add_filter("All Files", &["*"])
.pick_file();
match path {
Some(path) => Some(File::open(path).unwrap()),