From f75e964d494b9870d0991a33f1981a6485696fda Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Mon, 13 Feb 2017 19:02:53 -0800 Subject: [PATCH] Qt/GameList: Use suffix() to parse the file extension completeSuffix returns everything after the first period, which means that a file such as `foo.bar.3ds` would not get recognized. --- src/citra_qt/game_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index 28e01d81a6..222c82b1c8 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) {