citra-emu
/
citra-canary
Archived
1
0
Fork 0

Merge pull request #2566 from yuriks/file-extension-suffix

Qt/GameList: Use suffix() to parse the file extension
This commit is contained in:
Weiyi Wang 2017-02-14 09:04:59 +02:00 committed by GitHub
commit fae1efaad4
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ const QStringList GameList::supported_file_extensions = {"3ds", "3dsx", "elf", "
static bool HasSupportedFileExtension(const std::string& file_name) { static bool HasSupportedFileExtension(const std::string& file_name) {
QFileInfo file = QFileInfo(file_name.c_str()); 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) { void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsigned int recursion) {