summaryrefslogtreecommitdiff
path: root/src/citra_qt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r--src/citra_qt/main.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index f765c0147..3c2e19344 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -466,9 +466,14 @@ void GMainWindow::OnGameListOpenSaveFolder(u64 program_id) {
466} 466}
467 467
468void GMainWindow::OnMenuLoadFile() { 468void GMainWindow::OnMenuLoadFile() {
469 QString filename = 469 QString extensions;
470 QFileDialog::getOpenFileName(this, tr("Load File"), UISettings::values.roms_path, 470 for (const auto& piece : game_list->supported_file_extensions)
471 tr("3DS executable (*.3ds *.3dsx *.elf *.axf *.cci *.cxi)")); 471 extensions += "*." + piece + " ";
472
473 QString file_filter = tr("3DS executable") + " (" + extensions + ")";
474
475 QString filename = QFileDialog::getOpenFileName(this, tr("Load File"),
476 UISettings::values.roms_path, file_filter);
472 if (!filename.isEmpty()) { 477 if (!filename.isEmpty()) {
473 UISettings::values.roms_path = QFileInfo(filename).path(); 478 UISettings::values.roms_path = QFileInfo(filename).path();
474 479