mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-10 04:07:57 -05:00
citra-qt: Don't attempt to scan files with unsupported extensions (#2402)
This commit is contained in:
committed by
Yuri Kunde Schlesner
parent
da6a40e3d1
commit
30ff675f02
@ -466,9 +466,14 @@ void GMainWindow::OnGameListOpenSaveFolder(u64 program_id) {
|
||||
}
|
||||
|
||||
void GMainWindow::OnMenuLoadFile() {
|
||||
QString filename =
|
||||
QFileDialog::getOpenFileName(this, tr("Load File"), UISettings::values.roms_path,
|
||||
tr("3DS executable (*.3ds *.3dsx *.elf *.axf *.cci *.cxi)"));
|
||||
QString extensions;
|
||||
for (const auto& piece : game_list->supported_file_extensions)
|
||||
extensions += "*." + piece + " ";
|
||||
|
||||
QString file_filter = tr("3DS executable") + " (" + extensions + ")";
|
||||
|
||||
QString filename = QFileDialog::getOpenFileName(this, tr("Load File"),
|
||||
UISettings::values.roms_path, file_filter);
|
||||
if (!filename.isEmpty()) {
|
||||
UISettings::values.roms_path = QFileInfo(filename).path();
|
||||
|
||||
|
Reference in New Issue
Block a user