From 249f28fbe909a6aedc92064eba774b02b40eb06e Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 20 Feb 2017 13:44:50 -0800 Subject: [PATCH] Qt: Add DS ROM loading --- src/platform/qt/Window.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index cd7bfee78..b6867a346 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -340,6 +340,21 @@ QString Window::getFilters() const { filters.append(tr("Game Boy Advance ROMs (%1)").arg(gbaFormats.join(QChar(' ')))); #endif +#ifdef M_CORE_DS + QStringList dsFormats{ + "*.nds", +#if defined(USE_LIBZIP) || defined(USE_ZLIB) + "*.zip", +#endif +#ifdef USE_LZMA + "*.7z", +#endif + "*.rom", + "*.bin"}; + formats.append(dsFormats); + filters.append(tr("DS ROMs (%1)").arg(gbaFormats.join(QChar(' ')))); +#endif + #ifdef M_CORE_GB QStringList gbFormats{ "*.gb",