fox32: Allow any file type to be selected for mounting
This commit is contained in:
parent
64035f9629
commit
6a319071c0
|
@ -34,9 +34,10 @@ impl DiskController {
|
||||||
}
|
}
|
||||||
pub fn select_file(&self) -> Option<File> {
|
pub fn select_file(&self) -> Option<File> {
|
||||||
let path = FileDialog::new()
|
let path = FileDialog::new()
|
||||||
.add_filter("disk image", &["img", "dsk"])
|
.add_filter("Disk Image", &["img", "dsk"])
|
||||||
.add_filter("f32 binary", &["f32"])
|
.add_filter("f32 Binary", &["f32"])
|
||||||
.add_filter("raw binary", &["bin"])
|
.add_filter("Raw Binary", &["bin"])
|
||||||
|
.add_filter("All Files", &["*"])
|
||||||
.pick_file();
|
.pick_file();
|
||||||
match path {
|
match path {
|
||||||
Some(path) => Some(File::open(path).unwrap()),
|
Some(path) => Some(File::open(path).unwrap()),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user