Skip to content

Commit

Permalink
Merge pull request dolphin-emu#6720 from spycrab/qt_ext
Browse files Browse the repository at this point in the history
Qt/GameTracker: Match uppercase file extensions
  • Loading branch information
lioncash authored Apr 29, 2018
2 parents 1aebe51 + f5cfd1a commit cad7d2c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Source/Core/DolphinQt2/GameList/GameTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
#include "DolphinQt2/QtUtils/QueueOnObject.h"
#include "DolphinQt2/Settings.h"

// NOTE: Qt likes to be case-sensitive here even though it shouldn't be thus this ugly regex hack
static const QStringList game_filters{
QStringLiteral("*.gcm"), QStringLiteral("*.iso"), QStringLiteral("*.tgc"),
QStringLiteral("*.ciso"), QStringLiteral("*.gcz"), QStringLiteral("*.wbfs"),
QStringLiteral("*.wad"), QStringLiteral("*.elf"), QStringLiteral("*.dol")};
QStringLiteral("*.[gG][cC][mM]"), QStringLiteral("*.[iI][sS][oO]"),
QStringLiteral("*.[tT][gG][cC]"), QStringLiteral("*.[cC][iI][sS][oO]"),
QStringLiteral("*.[gG][cC][zZ]"), QStringLiteral("*.[wW][bB][fF][sS]"),
QStringLiteral("*.[wW][aA][dD]"), QStringLiteral("*.[eE][lL][fF]"),
QStringLiteral("*.[dD][oO][lL]")};

GameTracker::GameTracker(QObject* parent) : QFileSystemWatcher(parent)
{
Expand Down

0 comments on commit cad7d2c

Please sign in to comment.