2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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.
This commit is contained in:
Yuri Kunde Schlesner 2017-02-13 19:02:53 -08:00
parent 1bf449d752
commit f75e964d49

View file

@ -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) {