Merge pull request #201 from mjbudd77/master
Added all non-compressed useable file types to the open ROM file dial…
This commit is contained in:
commit
6a91541f42
|
@ -712,9 +712,18 @@ void consoleWin_t::openROMFile(void)
|
||||||
char dir[512];
|
char dir[512];
|
||||||
QFileDialog dialog(this, tr("Open ROM File") );
|
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.setFileMode(QFileDialog::ExistingFile);
|
||||||
|
|
||||||
dialog.setNameFilter(tr("NES files (*.nes *.NES) ;; All files (*)"));
|
dialog.setNameFilters( filters );
|
||||||
|
|
||||||
dialog.setViewMode(QFileDialog::List);
|
dialog.setViewMode(QFileDialog::List);
|
||||||
dialog.setFilter( QDir::AllEntries | QDir::AllDirs | QDir::Hidden );
|
dialog.setFilter( QDir::AllEntries | QDir::AllDirs | QDir::Hidden );
|
||||||
|
|
Loading…
Reference in New Issue