VERY experimental Nintendo Switch 2 emulator
C++
Qt/GameList: Use suffix() to parse the file extension
Yuri Kunde Schlesner622c405e71d5
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cppindex 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) {