Added all non-compressed useable file types to the open ROM file dialog filters for Qt GUI.

This commit is contained in:
Matthew Budd 2020-10-24 09:43:38 -04:00
parent 4c4d1f9ce3
commit c01d4e8621
1 changed files with 10 additions and 1 deletions

View File

@ -712,9 +712,18 @@ void consoleWin_t::openROMFile(void)
char dir[512];
QFileDialog dialog(this, tr("Open ROM File") );
const QStringList filters(
{ "All Useable files (*.nes *.NES *.nsf *.NSF *.fds *.FDS *.unf *.UNF *.unif *.UNIF)",
"NES files (*.nes *.NES)",
"NSF files (*.nsf *.NSF)",
"UNF files (*.unf *.UNF *.unif *.UNIF)",
"FDS files (*.fds *.FDS)",
"Any files (*)"
});
dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setNameFilter(tr("NES files (*.nes *.NES) ;; All files (*)"));
dialog.setNameFilters( filters );
dialog.setViewMode(QFileDialog::List);
dialog.setFilter( QDir::AllEntries | QDir::AllDirs | QDir::Hidden );