GameList: Fix broken cover-by-file-title detection

This commit is contained in:
Connor McLaughlin 2021-04-18 19:00:27 +10:00
parent a2a4b66cb7
commit c4891af00e
1 changed files with 1 additions and 1 deletions

View File

@ -1046,7 +1046,7 @@ std::string GameList::GetCoverImagePathForEntry(const GameListEntry* entry) cons
cover_path.AppendCharacter(FS_OSPATH_SEPARATOR_CHARACTER); cover_path.AppendCharacter(FS_OSPATH_SEPARATOR_CHARACTER);
cover_path.AppendString("covers"); cover_path.AppendString("covers");
cover_path.AppendCharacter(FS_OSPATH_SEPARATOR_CHARACTER); cover_path.AppendCharacter(FS_OSPATH_SEPARATOR_CHARACTER);
cover_path.AppendString(file_title.data()); cover_path.AppendString(file_title);
cover_path.AppendCharacter('.'); cover_path.AppendCharacter('.');
cover_path.AppendString(extension); cover_path.AppendString(extension);
if (FileSystem::FileExists(cover_path)) if (FileSystem::FileExists(cover_path))