Add elf/isx to file picker
This commit is contained in:
		
							parent
							
								
									132d494cc2
								
							
						
					
					
						commit
						58bb34e3cc
					
				| 
						 | 
					@ -88,6 +88,7 @@ impl GameWindow {
 | 
				
			||||||
                Command::OpenRom => {
 | 
					                Command::OpenRom => {
 | 
				
			||||||
                    let rom = rfd::FileDialog::new()
 | 
					                    let rom = rfd::FileDialog::new()
 | 
				
			||||||
                        .add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
 | 
					                        .add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
 | 
				
			||||||
 | 
					                        .add_filter("Executable files", &["", "elf", "isx"])
 | 
				
			||||||
                        .pick_file();
 | 
					                        .pick_file();
 | 
				
			||||||
                    if let Some(path) = rom {
 | 
					                    if let Some(path) = rom {
 | 
				
			||||||
                        self.client
 | 
					                        self.client
 | 
				
			||||||
| 
						 | 
					@ -140,6 +141,7 @@ impl GameWindow {
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                let rom = rfd::FileDialog::new()
 | 
					                let rom = rfd::FileDialog::new()
 | 
				
			||||||
                    .add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
 | 
					                    .add_filter("Virtual Boy ROMs", &["vb", "vbrom"])
 | 
				
			||||||
 | 
					                    .add_filter("Executable files", &["", "elf", "isx"])
 | 
				
			||||||
                    .pick_file();
 | 
					                    .pick_file();
 | 
				
			||||||
                if let Some(path) = rom {
 | 
					                if let Some(path) = rom {
 | 
				
			||||||
                    self.client
 | 
					                    self.client
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue