mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-26 05:00:07 +00:00
Qt: Allow any file extension in Open dialog
This commit is contained in:
parent
c7c0219f8a
commit
c81a2aabbf
@ -471,7 +471,8 @@ void GMainWindow::OnMenuLoadFile() {
|
|||||||
for (const auto& piece : game_list->supported_file_extensions)
|
for (const auto& piece : game_list->supported_file_extensions)
|
||||||
extensions += "*." + piece + " ";
|
extensions += "*." + piece + " ";
|
||||||
|
|
||||||
QString file_filter = tr("3DS executable") + " (" + extensions + ")";
|
QString file_filter = tr("3DS Executable") + " (" + extensions + ")";
|
||||||
|
file_filter += ";;" + tr("All Files (*.*)");
|
||||||
|
|
||||||
QString filename = QFileDialog::getOpenFileName(this, tr("Load File"),
|
QString filename = QFileDialog::getOpenFileName(this, tr("Load File"),
|
||||||
UISettings::values.roms_path, file_filter);
|
UISettings::values.roms_path, file_filter);
|
||||||
@ -484,7 +485,7 @@ void GMainWindow::OnMenuLoadFile() {
|
|||||||
|
|
||||||
void GMainWindow::OnMenuLoadSymbolMap() {
|
void GMainWindow::OnMenuLoadSymbolMap() {
|
||||||
QString filename = QFileDialog::getOpenFileName(
|
QString filename = QFileDialog::getOpenFileName(
|
||||||
this, tr("Load Symbol Map"), UISettings::values.symbols_path, tr("Symbol map (*)"));
|
this, tr("Load Symbol Map"), UISettings::values.symbols_path, tr("Symbol Map (*.*)"));
|
||||||
if (!filename.isEmpty()) {
|
if (!filename.isEmpty()) {
|
||||||
UISettings::values.symbols_path = QFileInfo(filename).path();
|
UISettings::values.symbols_path = QFileInfo(filename).path();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user