From 070e6c32d6f711a9e2396babb3da35d4bf8261f4 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Thu, 30 Jan 2020 19:49:44 +1000 Subject: [PATCH] Frontends: Add .chd files to open filter --- src/duckstation-qt/mainwindow.cpp | 2 +- src/duckstation/sdl_host_interface.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 3c745a1b9..20315ccc5 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -14,7 +14,7 @@ static constexpr char DISC_IMAGE_FILTER[] = "All File Types (*.bin *.img *.cue *.exe *.psexe);;Single-Track Raw Images (*.bin *.img);;Cue Sheets " - "(*.cue);;PlayStation Executables (*.exe *.psexe)"; + "(*.cue);;MAME CHD Images (*.chd);;PlayStation Executables (*.exe *.psexe)"; MainWindow::MainWindow(QtHostInterface* host_interface) : QMainWindow(nullptr), m_host_interface(host_interface) { diff --git a/src/duckstation/sdl_host_interface.cpp b/src/duckstation/sdl_host_interface.cpp index ecca91584..67b128a1d 100644 --- a/src/duckstation/sdl_host_interface.cpp +++ b/src/duckstation/sdl_host_interface.cpp @@ -1453,7 +1453,7 @@ void SDLHostInterface::DoStartDisc() Assert(!m_system); nfdchar_t* path = nullptr; - if (!NFD_OpenDialog("bin,img,cue,exe,psexe", nullptr, &path) || !path || std::strlen(path) == 0) + if (!NFD_OpenDialog("bin,img,cue,chd,exe,psexe", nullptr, &path) || !path || std::strlen(path) == 0) return; AddFormattedOSDMessage(2.0f, "Starting disc from '%s'...", path); @@ -1489,7 +1489,7 @@ void SDLHostInterface::DoChangeDisc() Assert(m_system); nfdchar_t* path = nullptr; - if (!NFD_OpenDialog("bin,img,cue,exe,psexe", nullptr, &path) || !path || std::strlen(path) == 0) + if (!NFD_OpenDialog("bin,img,cue,chd,exe,psexe", nullptr, &path) || !path || std::strlen(path) == 0) return; if (m_system->InsertMedia(path))