summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2017-02-14 08:04:59 +0100
committerGitHub <noreply@github.com>2017-02-14 08:04:59 +0100
commitfae1efaad46eaf28d6d9f55df3bfb889f8007abf (patch)
tree4cb59b07f7cd3e4e0c3ef8a8e3ff56dba846bd21
parentHLE/IPC: Fix uninitialized variables in helpers (#2568) (diff)
parentQt/GameList: Use suffix() to parse the file extension (diff)
downloadyuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.tar
yuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.tar.gz
yuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.tar.bz2
yuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.tar.lz
yuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.tar.xz
yuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.tar.zst
yuzu-fae1efaad46eaf28d6d9f55df3bfb889f8007abf.zip
-rw-r--r--src/citra_qt/game_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp
index 28e01d81a..222c82b1c 100644
--- a/src/citra_qt/game_list.cpp
+++ b/src/citra_qt/game_list.cpp
@@ -137,7 +137,7 @@ const QStringList GameList::supported_file_extensions = {"3ds", "3dsx", "elf", "
static bool HasSupportedFileExtension(const std::string& file_name) {
QFileInfo file = QFileInfo(file_name.c_str());
- return GameList::supported_file_extensions.contains(file.completeSuffix(), Qt::CaseInsensitive);
+ return GameList::supported_file_extensions.contains(file.suffix(), Qt::CaseInsensitive);
}
void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsigned int recursion) {