Frontends: Add .chd files to open filter

This commit is contained in:
Connor McLaughlin 2020-01-30 19:49:44 +10:00
parent c1c82eb3f3
commit 070e6c32d6
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
static constexpr char DISC_IMAGE_FILTER[] = static constexpr char DISC_IMAGE_FILTER[] =
"All File Types (*.bin *.img *.cue *.exe *.psexe);;Single-Track Raw Images (*.bin *.img);;Cue Sheets " "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) MainWindow::MainWindow(QtHostInterface* host_interface) : QMainWindow(nullptr), m_host_interface(host_interface)
{ {

View File

@ -1453,7 +1453,7 @@ void SDLHostInterface::DoStartDisc()
Assert(!m_system); Assert(!m_system);
nfdchar_t* path = nullptr; 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; return;
AddFormattedOSDMessage(2.0f, "Starting disc from '%s'...", path); AddFormattedOSDMessage(2.0f, "Starting disc from '%s'...", path);
@ -1489,7 +1489,7 @@ void SDLHostInterface::DoChangeDisc()
Assert(m_system); Assert(m_system);
nfdchar_t* path = nullptr; 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; return;
if (m_system->InsertMedia(path)) if (m_system->InsertMedia(path))